Getting vehicle driver seat (or even driver door) position?
#6

Quote:
Originally Posted by Smileys
View Post
https://sampwiki.blast.hk/wiki/Vehicle_information_types

VEHICLE_MODEL_INFO_FRONTSEAT // Position of the front seat*
[*]: These values are calculated from the center of the vehicle.

Which means that it'll give very low values, seen as it returns the values of the center of the vehicle to the front seat, instead of the front seat on the world map.

I'm not sure what you're trying to achieve, why do you want to get the position of the front seat anyway?
It may sound strange, but I'm checking to see if a player is in range of the door, so that when they use door cmds (such as /vlock, for example) a client message will read "<player> sticks the key into the door lock and twists to unlock the door."

The issue is that my current design (simply getting a vehicles position) is too far from the door on some vehicles.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)