Detect if a player is at the backside of his vehicle. - 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: Detect if a player is at the backside of his vehicle. (
/showthread.php?tid=243127)
Detect if a player is at the backside of his vehicle. -
KaleOtter - 21.03.2011
Ey I want to detect if a player is at the backside of the vehicle, so he can put and take things out of the boot of his vehicle.
Maybe there is a script released for this somewere? Or can somebody give me a hint to the right direction, because I think if I start on it and just script some shit, it will maybe take me hours before i know the right way how to script it

Thanks
Re: Detect if a player is at the backside of his vehicle. - rjjj - 21.03.2011
So, there is a released script in the portuguese section about this

:
https://sampforum.blast.hk/showthread.php?tid=153636
You only have to translate it, i think just the text variables.
I hope that i have helped
Re: Detect if a player is at the backside of his vehicle. -
KaleOtter - 21.03.2011
Well thanks alot, but I don't get any word of it but i will translate it and see if I can use it.
Thanks
Re: Detect if a player is at the backside of his vehicle. -
KaleOtter - 21.03.2011
Well I took a look into the script, but this not what I mean, it doesn't only include a function to detect the distance of the vehicle from the player (CheckPlayerDistanceToVehicle).
But I need something to detect if he is a the front or left, right, back of the vehicle.
Maybe I should do something with the vehicle coцrds and change the coords so it will give the position of the back of the vehicle, maybe something like -1 Y or -1 Z , But I gues this is not always the same if the vehicle is at another angle...
Well I will try some shit