10.09.2018, 19:24
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:
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;
}