SA-MP Forums Archive
Vehicle moving without player? - 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: Vehicle moving without player? (/showthread.php?tid=592673)



Vehicle moving without player? - Kajlle - 28.10.2015

Is it possible to make vehicle to move without controling it? Like MoveObject, or something...


Re: Vehicle moving without player? - ATGOggy - 28.10.2015

Yes, you can. Get the object id (not model id) of that vehicle model and use MoveObject.


Re: Vehicle moving without player? - AbyssMorgan - 28.10.2015

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
Yes, you can. Get the object id (not model id) of that vehicle model and use MoveObject.
what ? xD
show code :P


Re: Vehicle moving without player? - AIped - 28.10.2015

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
what ? xD
show code :P
+1 please show us...

I wanted to reply that its also possible with vehiclevelocity but no skip that it doesnt work.


Re: Vehicle moving without player? - kamiliuxliuxliux - 28.10.2015

I was trying to search for such object ids like vehicles, but didn't find anything... I don't think it's possible, because I tried to create object by entering "429" (it is Banshee's model), in objectid and I had in-game warning.


Re: Vehicle moving without player? - PrO.GameR - 29.10.2015

Vehicle's don't have objects, just like skins, no you can't create them as objects
as far as I know you can only SetVehiclePos, but thats a bad idea ( as it won't simulate running)


Re: Vehicle moving without player? - ATGOggy - 29.10.2015

http://forum.sa-mp.com/archive/index.php/t-564572.html