GetMyPos: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(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...")
 
No edit summary
 
Line 1: Line 1:
{{Welcome| desc= Gets the position of an NPC|
{{Welcome| desc= Gets the position of an NPC|
retvals=The position of the NPC as a [[Vector]].|
retvals=The position of the NPC as a [[Vector]] and null on failure.|
example=<source lang="lua">
example=<source lang="lua">
local p=GetMyPos();
local p=GetMyPos();

Latest revision as of 14:48, 7 January 2023


Description:
Gets the position of an NPC


Parameters:

NoParams


Return Values:
The position of the NPC as a Vector and null on failure.


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.