Jump to content

[LE] Preventing player from running


lofgren

Recommended Posts

Game.DisablePlayerControls(True, True, True, False, True, True, True, True,0)
Game.GetPlayer().SetDontMove(true)
;----
Game.EnablePlayerControls()
Game.GetPlayer().SetDontMove(false)

 

 

If SetDontMove isn't doing it for you by itself then DisablePlayerControls + SetDontMove will.

Link to comment
Share on other sites

Its odd, there doesn't appear to be any animation variable (when there are plenty for sprinting) nor actor values. An "Encumbered" actor value would come in handy like those for paralisis and invisibility.

 

"istate" animation variable doens't have explanation on the wiki, maybe it's related.

Link to comment
Share on other sites

 

Is there a method other than encumbering the pc to prevent them from running?

Â

 If you placed an ability on the player that slowed their speed with a condition that they have to be running or sprinting it might work. Â

They can still run while slowed, unfortunately. They just run slowly.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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