Detect if a player is at the backside of his vehicle.
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)