Entity/GetElasticity

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added required arguments and type of returned value)
m
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=GetElasticity
+
|Description=Returns the elasticity of this entity, used by some flying entities such as the Helicopter NPC to determine how much it should bounce around when colliding.
|Parent=Entity
+
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes
 +
|Name=GetElasticity
 +
|Parent=Entity
 
}}
 
}}
 
{{Ret
 
{{Ret
 
|type=number
 
|type=number
 +
|desc=elasticity
 
}}
 
}}

Latest revision as of 12:43, 19 March 2016

 Entity:GetElasticity( )

Description

Returns the elasticity of this entity, used by some flying entities such as the Helicopter NPC to determine how much it should bounce around when colliding.

Returns

number

elasticity
Personal tools
Navigation