Question about vehicles spawned on dynamic object - 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: Question about vehicles spawned on dynamic object (
/showthread.php?tid=579237)
Question about vehicles spawned on dynamic object -
maximthepain - 25.06.2015
Hey, I'm having a situation where there is a parking lot building created using dynamic objects, when player spawns near the building it loads it. while it loads it the vehicles sometimes (only for that player) will "respawn" in the road nearby instead inside the parking lot where it ment to be spawned. Is there any way to make the vehicle stay in the parking lot without getting out and blow up for no good reason?
(tried to make the Z higher by a few, same result)
Adding those specific vehicles using AddStaticVehicleEx function.
*EDIT: I was thinking once about using those 2:
Код:
native Streamer_Update(playerid, type = -1);
native Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, type = -1);
however seems like it led me to the same result even through the building seemed to loaded extreamly fast.