|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inline |
Cancels any extra jump in progress.
Sets all P:Terraria.DataStructures.ExtraJumpState.Active flags to false and calls OnExtraJumpEnded hooks.
Also sets F:Terraria.Player.jump to 0 if a an extra jump was active.
Used by vanilla when performing an action which would cancel jumping, such as grappling, grabbing a rope or getting frozen.
To prevent the use of remaining jumps, use M:Terraria.Player.ConsumeAllExtraJumps or F:Terraria.Player.blockExtraJumps.
To cancel a regular jump as well, do Player.jump = 0;
Definition at line 58740 of file Player.cs.
References Terraria.Player.jump, and Terraria.ModLoader.ExtraJumpLoader.StopActiveJump().
Here is the call graph for this function: