SA-MP Forums Archive
CreateDynamicObject Problem - 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: CreateDynamicObject Problem (/showthread.php?tid=378169)



CreateDynamicObject Problem - Joshy_Elite - 16.09.2012

A couple weeks ago i created a map for my server.It was a mechanic interior,i made it above idlewood,in the sky.However,if anyone is under the interior,the cars inside of it just fall through the ground.How do i fix that?


Re: CreateDynamicObject Problem - scottyishere - 16.09.2012

The quickest way to fix it is to make the GROUND object (the object on which the vehicle lands when teleported) CreateObject instead of CreateDynamicObject.

An alternative would be a temporary freeze timer. Put this right after SetVehiclePos.
pawn Код:
TogglePlayerControllable(playerid,0);
SetTimerEx("unfreeze",1000,false,"i",playerid);
The function:
pawn Код:
public unfreeze(playerid) return TogglePlayerControllable(playerid,1);
A third alternative would be the preload function from the streamer plugin. Look in the documentation of Incognito's Streamer Plugin.