GetPlayerPos: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome|desc=Gets the position of a player as Vector.|params=<syntaxhighlight lang="lua">playerid</syntaxhighlight> <poem>::playerid : The ID of the player whose position is...") |
(No difference)
|
Revision as of 14:21, 22 March 2022
{{Welcome|desc=Gets the position of a player as Vector.|params=
playerid
playerid : The ID of the player whose position is needed.
|
retvals= The position of the player as Vector|
example=
if( IsPlayerStreamedIn(playerid))
{
local pos=GetPlayerPos(playerid);
local msg=format( " Player %d is at %f x units, %f y units and %f z units", playerid, pos.x, pos.y, pos.z);
}
else
print( "Player " + playerid + " is not streamed in" );|
relfuncs=*GetPlayerFacingAngle