Garry's Mod Wiki

Revision Difference

GM:HandlePlayerSwimming#562861

<function name="HandlePlayerSwimming" parent="GM" type="hook"> <description>Allows to override player swimming animations.</description> <realm>Shared</realm> <args> <arg name="ply" type="Player">The player</arg> <arg name="velocity" type="number">Players velocity</arg> <arg name="velocity" type="Vector">Players velocity</arg> </args> <rets> <ret name="" type="boolean">Return true if we've changed/set the animation, false otherwise</ret> </rets> </function>