WEAPON/SetDeploySpeed

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
{{Hook
 
{{Hook
|Name=SetDeploySpeed
 
|Parent=WEAPON
 
 
|Description=Sets the weapon deploy speed. This value needs to match on client and server.
 
|Description=Sets the weapon deploy speed. This value needs to match on client and server.
 
|Realm=Shared
 
|Realm=Shared
 +
|Predicted=No
 +
|Name=SetDeploySpeed
 +
|Parent=WEAPON
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
 
|name=speed
 
|name=speed
|desc=The value to set deploy speed to
+
|desc=The value to set deploy speed to. Negative will slow down playback.
 
}}
 
}}
 
{{Example
 
{{Example

Latest revision as of 05:44, 7 September 2015

 WEAPON:SetDeploySpeed( )

Contents

Description

Sets the weapon deploy speed. This value needs to match on client and server.

Arguments

number speed

The value to set deploy speed to. Negative will slow down playback.

Examples

Example

As defined in weapon_base

function SWEP:SetDeploySpeed( speed )
	self.m_WeaponDeploySpeed = tonumber( speed )
end


Personal tools
Navigation