WEAPON/SetDeploySpeed

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Hook |Name=SetDeploySpeed |Parent=WEAPON |Description= |Realm= }}")
 
Line 2: Line 2:
 
|Name=SetDeploySpeed
 
|Name=SetDeploySpeed
 
|Parent=WEAPON
 
|Parent=WEAPON
|Description=
+
|Description=Sets the weapon deploy speed. This value needs to match on client and server.
|Realm=
+
|Realm=Shared
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=speed
 +
|desc=The value to set deploy speed to
 +
}}
 +
{{Example
 +
|Description=As defined in weapon_base
 +
|Code=function SWEP:SetDeploySpeed( speed )
 +
self.m_WeaponDeploySpeed = tonumber( speed )
 +
end
 
}}
 
}}

Revision as of 19:21, 21 March 2013

 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

Examples

Example

As defined in weapon_base

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


Personal tools
Navigation