Getting exact position of trunk
#1

So I'm trying to fine a way of getting the x, y, z of the area right behind the trunk of a vehicle (Which could be used for example in a /trunk command to make sure you are standing by a trunk) Does anyone have a function or any way they could think of doing it as every vehicle is different in size so just making it do y+2 or something like that I would assume would be invalid.
Reply
#2

You would have to take into account the angle of the vehicle, and use trig to calculate the co-ordinates of the valid /trunk area.

There are only 211 different vehicles, and of them, perhaps 100 are ~standard~ size cars.
It would not be difficult to write a function that references an array ( that you have to create manually ) which will get the x,y,z of the area behind the vehicle.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)