CreateDynamicObject Problem
#1

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?
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)