Entity/GetPos

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=GetPos |Parent=Entity |Description=Gets the position of entity in world. | Returns = {{Return| Vector| pos}} |Realm=Shared |IsClass=Yes }} {{Ret |type=Vec...")
 
Line 3: Line 3:
 
|Parent=Entity
 
|Parent=Entity
 
|Description=Gets the position of entity in world.
 
|Description=Gets the position of entity in world.
| Returns = {{Return| Vector| pos}}
 
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes
Line 9: Line 8:
 
{{Ret
 
{{Ret
 
|type=Vector
 
|type=Vector
|desc= pos
+
|desc=The position of the entity.
}}
+
{{Example
+
| Description = Demonstrates the use of this function clientside.
+
| Code = print( LocalPlayer():GetPos() )
+
| Output = Something like "529.396179 -779.646423 -110.303543".
+
 
}}
 
}}

Revision as of 07:40, 17 April 2014

 Entity:GetPos( )

Description

Gets the position of entity in world.

Returns

Vector

The position of the entity.
Personal tools
Navigation