Entity/GetPos

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Facepunch bot (Talk | contribs)
(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...")
Newer edit →

Revision as of 12:12, 27 February 2013

 Entity:GetPos( )

Contents

Description

Gets the position of entity in world.

Returns

Vector

pos

Examples

Example

Demonstrates the use of this function clientside.

print( LocalPlayer():GetPos() )

Output:

Something like "529.396179 -779.646423 -110.303543".
Personal tools
Navigation