Ana içeriğe geç

GetActorSpawnInfo

warning

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Get the initial spawn point of the actor.

NameDescription
actoridThe ID of the actor to get the spawn point of
&skinA variable into which to store the skin in, passed by reference.
&Float:spawnXA float variable into which to store the spawnX in, passed by reference.
&Float:spawnYA float variable into which to store the spawnY in, passed by reference.
&Float:spawnZA float variable into which to store the spawnZ in, passed by reference.
&Float:spawnAngleA float variable into which to store the spawnAngle in, passed by reference.

Return Values

Returns true if the actor is valid, otherwise returns false.

Examples

new gMyActor;

public OnGameModeInit()
{
gMyActor = CreateActor(179, 1153.9640, -1772.3915, 16.5920, 0.0000);

new skin,
Float:spawnX,
Float:spawnY,
Float:spawnZ,
Float:spawnAngle;

GetActorSpawnInfo(gMyActor, skin, spawnX, spawnY, spawnZ, spawnAngle);
return 1;
}