Garry's Mod Wiki

Revision Difference

WEAPON:SetDeploySpeed#512191

<function name="SetDeploySpeed" parent="WEAPON" type="hook">⤶ <ishook>yes</ishook>⤶ <description>Sets the weapon deploy speed. This value needs to match on client and server.</description>⤶ <realm>Shared</realm>⤶ <predicted>No</predicted>⤶ <args>⤶ <arg name="speed" type="number">The value to set deploy speed to. Negative will slow down playback.</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>As defined in weapon_base</description>⤶ <code>⤶ function SWEP:SetDeploySpeed( speed )⤶ self.m_WeaponDeploySpeed = tonumber( speed )⤶ end⤶ </code>⤶ ⤶ </example>