GET DOOR ANGLE RATIO

From GTAModding
Jump to: navigation, search
GET_DOOR_ANGLE_RATIO
Number of parameters: 3
Parameter #TypeDescription
1.integerVehicle handler
2.integerDoor`s ID
3.floathandler of door angle
Return value:
TypeDescription
None

This native gets angle of vehicle`s door and store it in parameter 3.
For example: GET_DOOR_ANGLE_RATIO( myCar, 5, &FloatAngle ) - will get your trunk door angle.

Door`s ID Description
0 Left front door
1 Right front door
2 Left rear door
3 Right rear door
4 Vehicle bonnet
5 Vehicle trunk