PDA

View Full Version : Actors not visible


m4karow
10/03/2018, 09:47 PM
Hey

I'm using streamer for actors.
I created some actor in the gym interior with worldid -1, so this means they should be visible in all virtual worlds, in interior 6 (for example) right? But they don't...

Maximun
10/03/2018, 10:18 PM
You probably made a mistake on your code, we never know.
At least, shoot us a line of your code :)

m4karow
10/03/2018, 10:21 PM
static AddDynamicActor(skinid, Float:X, Float:Y, Float:Z, Float:R, worldid, interiorid, godmode = 1, Float:health = 100.0)
{
new actorid = CreateDynamicActor(skinid, X, Y, Z, R, godmode, health, worldid, interiorid, -1);
ActorWorld[actorid] = worldid;
Iter_Add(Actors, actorid);
return actorid;
}

public OnScriptInit()
{
AddDynamicActor(80, 761.440002, 0.958596, 1001.594238, 135.559936, -1, 5);
return 1;
}

Maximun
10/03/2018, 10:34 PM
Have you ever tried with a default interior? However, try with 'printf' to make sure that's working.