SA-MP Forums Archive
Get Engine Offsets - 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: Get Engine Offsets (/showthread.php?tid=560216)



Get Engine Offsets - bogdyutzu - 27.01.2015

How I can get the engine position offsets of every vehicles automatically?


Re: Get Engine Offsets - Smileys - 27.01.2015

Simple, you can't.

you could attach an object to a vehicle that has the size of an engine, place it on the engine's position and then grab the coords of your attached object.

other than that idk.


Re: Get Engine Offsets - CalvinC - 27.01.2015

The engine isn't an object that you can get the position of, it's a part of the vehicle model itself.
You can get the manually by looking in-game or in a map editor, then adding the offsets to your gamemode where they are.
But it wont be 100% correct.