TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ StopExtraJumpInProgress()

void Terraria.Player.StopExtraJumpInProgress ( )
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.

58741 {
58743 if (anyJumpCancelled)
58744 {
58745 jump = 0;
58746 }
58747 }
static void StopActiveJump(Player player, out bool anyJumpCancelled)

References Terraria.Player.jump, and Terraria.ModLoader.ExtraJumpLoader.StopActiveJump().

+ Here is the call graph for this function: