IsVehicleInRangeOfPoint
#1

Hi,

To check vehicle is in range of point i use this function IsVehicleInRangeOfPoint, but i don't know what i need set range, i need to set that how is vehicle size because this function i know calculating from vehicle center? it's i get player pos, i need to check is it inrangeofpoint of vehicle but how I mentioned I need to get very sensitive, and that just comes to tires, or at the door or at the lamp directly from either side and casting machines it counts as the. Vehicles forms are square instead of a circle and function checks isplayerinrangeofpoint circle
Reply
#2

With this function https://sampwiki.blast.hk/wiki/GetVehicleModelInfo and the vehicle facing angle, you can do some trigonometric functions to calculate its maxX-minX and maxY-minY.
Reply
#3

It's hard to my with trigonometric functions..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)