Scrab Posted July 29, 2021 Posted July 29, 2021 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
Pamatronic Posted July 29, 2021 Posted July 29, 2021 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.
Seijin8 Posted July 29, 2021 Posted July 29, 2021 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.
Scrab Posted July 30, 2021 Author Posted July 30, 2021 Neither of those sound very efficient huh.. Thanks anyway
Recommended Posts
Archived
This topic is now archived and is closed to further replies.