GetMyPos

From NPC for VCMP 0.4 Servers
Revision as of 15:18, 15 March 2022 by 137.97.101.184 (talk) (Created page with "{{Welcome| desc= Gets the position of an NPC| retvals=The position of the NPC as a Vector.| example=<source lang="lua"> local p=GetMyPos(); print("My position co-ordinates...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
Gets the position of an NPC


Parameters:

NoParams


Return Values:
The position of the NPC as a Vector.


Example

local p=GetMyPos();
print("My position co-ordinates are "+p);

Related Functions

The following functions may be helpful as they relate to this function in one way or another.