SA-MP Forums Archive
SetVehiclePos bug - 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: SetVehiclePos bug (/showthread.php?tid=445452)



SetVehiclePos bug - iWhite - 21.06.2013

In samp wiki it says "An empty vehicle will not fall after being teleported into the air.", but it falls. I tried this code:

Code:
   new Float:x, Float:y, Float:z;
   GetPlayerPos(playerid, x, y, z);
   SetPlayerPos(playerid, x, y, z);
   SetTimerEx("@SetVehiclePos", 500, false, "ifff", GetPlayerVehicleID(playerid), x, y, z+10);
But vehicle is falling on me everytime...


Re: SetVehiclePos bug - Swyft™ - 21.06.2013

Well

pawn Code:
SetTimerEx("@SetVehiclePos", 500, false, "ifff", GetPlayerVehicleID(playerid), x, y, z+10);
Z+10 represents the Z Coordinate going up by 10... So it makes the car teleport in the air.


Re: SetVehiclePos bug - iWhite - 21.06.2013

Yes and in wiki it says "An empty vehicle will not fall after being teleported into the air", so it should freeze being without driver but it falls on me