Aller au contenu principal

SetActorVirtualWorld

attention

La fonctionnalité de type fonction a été ajoutée dans la version SA-MP 0.3.7 et ne fonctionne pas avec les versions antérieures !

Description​

Set the virtual world of an actor. Only players in the same world will see the actor.

NameDescription
actoridThe ID of the actor (returned by CreateActor) to set the virtual world of.
virtualWorldThe virtual world to put the actor ID.

Returns​

true - The function was executed successfully.

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

Examples​

new gMyActor;

public OnGameModeInit()
{
// Create the actor
gMyActor = CreateActor(69, 0.0, 0.0, 3.0, 0.0);

// Set their virtual world
SetActorVirtualWorld(gMyActor, 69);
return 1;
}