GET CLOSEST CAR NODE WITH HEADING

From GTAMods Wiki
Jump to navigation Jump to search
GET_CLOSEST_CAR_NODE_WITH_HEADING
Number of parameters: 7
Parameter #TypeDescription
1.floatX coordinate
2.floatY coordinate
3.floatZ coordinate
4.pointer to floatX coordinate of closest node
5.pointer to floatY coordinate of closest node
6.pointer to floatZ coordinate of closest node
7.pointer to floatHeading of closest node
Return value:
TypeDescription
boolsuccess?

Gets the car node closest to the specified position, and stores the position and heading of the node in the variables pointed to by P4, P5, P6 and P7.