Garry's Mod Wiki

GM:HandlePlayerSwimming

  boolean GM:HandlePlayerSwimming( Player ply, Vector velocity )

Description

Allows to override player swimming animations.

Arguments

1 Player ply
The player
2 Vector velocity
Players velocity

Returns

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