முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

GetActorPos

எச்சரிக்கை

செயல்பாடு என்பது SA-MP 0.3.7 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Get the position of an actor.

NameDescription
actoridThe ID of the actor to get the position of. Returned by CreateActor.
&Float:xA float variable, passed by reference, in which to store the X coordinate of the actor.
&Float:yA float variable, passed by reference, in which to store the Y coordinate of the actor.
&Float:zA float variable, passed by reference, in which to store the Z coordinate of the actor.

Returns​

true - The function executed successfully.

false - The function failed to execute. The actor specified does not exist.

The actor's position is stored in the specified variables.

Examples​

new Float:x, Float:y, Float:z;
GetActorPos(actorid, x, y, z);