SetMyPos: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome| desc=Sets an NPC's position| params=<syntaxhighlight lang="lua">(position)</syntaxhighlight> <poem>::position: The Vector position for NPC.</poem>| example=<source...") |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
desc=Sets an NPC's position| | desc=Sets an NPC's position| | ||
params=<syntaxhighlight lang="lua">(position)</syntaxhighlight> | params=<syntaxhighlight lang="lua">(position)</syntaxhighlight> | ||
<poem>::position: The Vector position for NPC.</poem>| | <poem>::position: The [[Vector]] position for NPC.</poem>| | ||
example=<source lang="lua"> | example=<source lang="lua"> | ||
SetMyPos(Vector(0,1,0)); | SetMyPos(Vector(0,1,0)); | ||
</source>| | </source>| | ||
relfuncs=*[[ | retvals=true on success and null on failure (from v1.6)| | ||
*[[ | relfuncs=*[[GetMyPos]] | ||
*[[SetMyFacingAngle]] | |||
}} | }} |
Latest revision as of 09:48, 5 January 2023
Description:
Sets an NPC's position
Parameters:
(position)
position: The Vector position for NPC.
Return Values:
true on success and null on failure (from v1.6)
Example
SetMyPos(Vector(0,1,0));
Related Functions
The following functions may be helpful as they relate to this function in one way or another.