Quote:
Originally Posted by willbedie
Are you sure you are in the same virtual world as the actor? Try creating a debug getting the actor's virtual world and your virtual world...
Here's an example:
PHP Code:
public OnGameModeInit()
{
ActorOGF = CreateActor(28, 2438.7710,-1901.5355,13.5534,322.5977); //Actor OGF
ApplyActorAnimation(ActorOGF, "DEALER", "DEALER_IDLE", 4.1, 1, 0, 0, 0, 0);
printf("Actor's virtual world: %d", GetActorVirtualWorld(ActorOGF); // This will get the actor's virtual world.
return 1;
}
CMD:myvw(playerid, params[])
{
new str[20];
format(str, sizeof(str), "Your virtual world is: %d", GetPlayerVirtualWorld(playerid)); // This will get your virtual world
SendClientMessage(playerid, -1, str);
return 1;
}
|
Yep, you should try that, also make sure you also check the actor interior, but i think it will be fine since it set to 0 default, unless you're spawning an actor inside a building, you need to set it's interior ID.