Jump to content

[CK] Disable Jumping


Scrab

Recommended Posts

Posted

I was wondering if its possible to disallow the Player to jump without restraining other parts of movement

Im currently using DisablePlayerControls() to completely lock out the Player from moving but in my case it might be more sufficient to still allow them to walk around as long as they arent jumping (or attacking) but havent found a way to achieve this thus far

Posted

Not entirely sure how it works, but zap restraints do prevent you from jumping and sprinting (maybe connected?) without preventing regular movement.

And as far as i know the only thing they actually do is to spam the DisablePlayerControls(???) in 0.5 second interval's.

Posted
2 hours ago, Scrab said:

I was wondering if its possible to disallow the Player to jump without restraining other parts of movement

Im currently using DisablePlayerControls() to completely lock out the Player from moving but in my case it might be more sufficient to still allow them to walk around as long as they arent jumping (or attacking) but havent found a way to achieve this thus far

 

Easiest (but least compatible way) would be to add a faction or global that says whether the player should be able to jump and then add that as a condition on all jump animation events.  Then just toggle that global/faction through script with whatever you are doing.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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