Garry's Mod Wiki

GM:HandlePlayerLanding

  boolean GM:HandlePlayerLanding( Player ply, number velocity, boolean onGround )

Description

Called every frame by the player model animation system. Allows to override player landing animations.

Arguments

1 Player ply
The player
2 number velocity
Players velocity
3 boolean onGround
Was the player on ground?

Returns

1 boolean
Return true if we've changed/set the animation, false otherwise