moveobject - 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: moveobject (
/showthread.php?tid=612499)
moveobject -
Zeus666 - 18.07.2016
Код:
air = CreateObject(18849, 1130.25,-2037.98,69.01,0.00000, 0.00000, 0.00000);
MoveObject(air, 1133.23,-2037.46, 110.05, 3.0);
for(new i=0; i < MAX_PLAYERS; i++)
{
DisablePlayerCheckpoint(i);
SetPlayerCheckpoint(i, 1130.15,-2037.87, 49.01, 3);
}
what's wrong? it's not coming from air to the ground, it's going from the ground to the air.
Re: moveobject -
iKarim - 18.07.2016
I guess because your Z co-ordinate in MoveObject is higher than the one of CreateObject so obviously it w'd go up. Try this:
PHP код:
air = CreateObject(18849, 1130.25,-2037.98,110.05,0.00000, 0.00000, 0.00000);
MoveObject(air, 1133.23,-2037.46,69.01,3.0);
for(new i=0; i < MAX_PLAYERS; i++)
{
DisablePlayerCheckpoint(i);
SetPlayerCheckpoint(i, 1130.15,-2037.87, 49.01, 3);
}