Preload objects? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Preload objects? (
/showthread.php?tid=132283)
Preload objects? -
Programie - 07.03.2010
Hi,
How can I preload objects to prevent the player from falling though streamed objects?
I have some teleport commands, and some teleport places are in the air where additional objects were created if the player is near the object (CreatePlayerObject).
I don't know if there is any function to check if the objects are loaded.
Thank in advance.
Re: Preload objects? -
PotH3Ad - 07.03.2010
You could just use a timer with TogglePlayerControllable to keep the player in the air for like 5 seconds, giving the objects time to load. Then after the 5 seconds are over put him down.
Re: Preload objects? -
cessil - 07.03.2010
streamers only load when the player is near that object, you could have some non streamed objects on the spawn points or do the timer thing, I have mine on a timer to only like 1-2seconds