warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
GetActorVirtualWorld
warning
This function was added in SA-MP 0.3.7 and will not work in earlier versions!
Description
Get the virtual world of an actor.
Name | Description |
---|---|
actorid | The ID of the actor to get the virtual world of. |
Returns
The virtual world of the actor. By default this is 0.
Also returns 0 if actor specified does not exist.
Examples
new MyActor;
public OnGameModeInit()
{
MyActor = CreateActor(69, 0.0, 0.0, 3.0, 0.0);
SetActorVirtualWorld(MyActor, 20);
return 1;
}
// Somewhere else
if (GetActorVirtualWorld(MyActor) == 20)
{
// Do something
}
Related Functions
- SetActorVirtualWorld: Set the virtual world of an actor.