Garry's Mod Wiki

Revision Difference

Player:GetDuckSpeed#515971

<function name="GetDuckSpeed" parent="Player" type="classfunc"> <description>Returns a player's duck speed (in seconds)</description> <realm>Shared</realm> <rets> <ret name="" type="number">duckspeed</ret> </rets> </function> ⤶ {{Example⤶ | Description = Gets player 1's duck speed in seconds, and prints it to console⤶ | Code = print( player.GetByID( 1 ):GetDuckSpeed() )| Output = 0.3 in console (tested)}}⤶ <example>⤶ <description>Gets player 1's duck speed in seconds, and prints it to console</description>⤶ <code>print( player.GetByID( 1 ):GetDuckSpeed() )</code>⤶ <output>0.3 in console (tested)</output>⤶ ⤶ </example>