Jump to content

Disable Jump while Combat


elafrosicky

Recommended Posts

i'm having some problems, trying to implement a script fot this,

 

this is the error when i compile:

 

Starting 1 compile threads for 1 files...
Compiling "NoJumpInCombat"...
A:\Juegos\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\NoJumpInCombat.psc(11,7): no viable alternative at input '.'
No output generated for NoJumpInCombat.psc, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on NoJumpInCombat.psc
and this is the script:
scriptname NoJumpInCombat
;InputEnableLayer myLayer
;myLayer.create()
;myLayer.EnableJumping()
;InputEnableLayer myLayer = EnableJumping.Create()
;InputEnableLayer myLayer = InputEnableLayer.Create()
;myLayer.EnableJumping()
InputEnableLayer myLayer
myLayer.create()
myLayer.EnableJumping()
Event OnCombatStateChanged(Actor akTarget, int aeCombatState)
if (akTarget == Game.GetPlayer())
if (aeCombatState== 0);We have left combat
myLayer.EnableJumping(true)
elseif (aeCombatState == 1);We have entered combat
myLayer.EnableJumping(false)
elseif (aeCombatState == 2);We are searching...
myLayer.EnableJumping(false)
endif
else
endif
endEvent
Link to comment
Share on other sites

  • 9 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...