Vehicle Help. - 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 Help. (
/showthread.php?tid=402509)
Vehicle Help. -
JoelR - 26.12.2012
I was wondering, how could I get the locations of the fuel cap on a vehicle?
EG:
If I am in a vehicle, I type command /fillwithfuelcan, then it makes a checkpoint where the vehicles fuel cap is?
If anybody can help me with this I would greatly appreciate it.
Re: Vehicle Help. -
Horrible - 27.12.2012
you can find the cordinate here :
http://pastebin.com/rKDAhRkv
Re: Vehicle Help. -
JoelR - 27.12.2012
Thank you Horrible, but is there any way to check them quickly?
Re: Vehicle Help. -
Vince - 27.12.2012
https://sampwiki.blast.hk/wiki/GetVehicleModelInfo
Needs trigonometry to deduct the world position from the relative offset and the vehicle's angle. Unfortunately, I suck at that.
Re: Vehicle Help. -
JoelR - 27.12.2012
Thanks Vince.
Could anybody help me with the next bit of what Vince was on about please?
Re: Vehicle Help. -
JoelR - 28.12.2012
Anyone?