how can i detect if a player is shooting at a vehicle + offset? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how can i detect if a player is shooting at a vehicle + offset? (
/showthread.php?tid=255004)
how can i detect if a player is shooting at a vehicle + offset? -
Donya - 13.05.2011
ok well you all know a vehicle will be started at 0.0 0.0 0.0, so i want to detect if a player shoots at vehicle pos x, y and z with an offset of -1.10 -2.06 -0.07
Re: how can i detect if a player is shooting at a vehicle + offset? -
Retardedwolf - 13.05.2011
SUGGESTIONS
-Attach an object to vehicle with that offset, store object pos, compare.
Re: how can i detect if a player is shooting at a vehicle + offset? -
Donya - 14.05.2011
you took the words right out of my mouth. but after attaching an object to a vehicle, i heard it doesn't update the position.. so it's not really true?