SA-MP Forums Archive
Actor with Incognito Streamer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Actor with Incognito Streamer (/showthread.php?tid=581193)



Actor with Incognito Streamer - Sk1lleD - 11.07.2015

Hello dudes,
I've made a script to load actors and it works fine utill I have to place them into a mapped interior, as I undestood the streamer plugin do not load objects for actors so they fall down.
Someone knows how it could be fixed? (if it's possible)


Re: Actor with Incognito Streamer - TwinkiDaBoss - 11.07.2015

Simple. Make a timer that will check if anyone is near the actor and if they are just re-set actors position.

pawn Код:
new Float:x,Float:y,Float:z;
GetActorPos(your actor name, x,y,z);
if(IsPlayerInRangeOfPoint(playerid,20.0,x,y,z))
{
    SetActorPos(actorid,your positions here);
}
return true;
And lets say that when someone comes near it, kill the timer