SA-MP Forums Archive
"Car" Position - 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: "Car" Position (/showthread.php?tid=627452)



"Car" Position - Hunud - 28.01.2017

How get position of this car back! Like he must be near this doors or behind car

http://imgur.com/bbiPhrk


Re: "Car" Position - BiosMarcel - 28.01.2017

1: use /dl to the cars position
2: note the position
3: leave the car
4: go behind the car
5: type /save
6: check your coordinate file
7: check the distance
8: calculate the position of the cars back
9: use IsPlayerInRangeOf(...)

That's how i'd do it, might not be the best approach though


Re: "Car" Position - renatog - 28.01.2017

You can get tires, hood and trunk positions for most vehicles with this include: https://sampforum.blast.hk/showthread.php?tid=620512

I made a trick to get doors position (2nd page of the linked topic), but it wasn't implemented and I didn't tested with all vehicles


Re: "Car" Position - Hunud - 28.01.2017

I dont understand anything but i will try