[Tutorial] Math Plugin - (some) functions explained and the awesome thing's it can do.
#8

Quote:
Originally Posted by cyber_punk
Посмотреть сообщение
I am really curious to see an example of MPProjectPointOnVehicle in a comment of the code JernejL says it could be useful to find each tire proximity. Is there an easy way to find that or how about to know a player is at the trunk (boot) of a vehicle? I was looking at this earlier and it still seems like I need a massive array to store the vehicle offsets for this or am I missing something?
I don't exactly know how to use that function completely, but heres a good way

But as you can see it returns the x y z angles, you should experiment with it

http://forum.sa-mp.com/showthread.ph...00#post1321900

you can change this Pos[2] + 0.5 * Pos[5] to and the 0.4 to get it to the tires. simple you need getvehiclesize by RyDeR`

Might I suggest maybe -0.1 and 0.35. try those, it should work with all vehicles, just adjust it to your needs
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)