11.08.2017, 20:03
Added GetVehicleObjectPositionOffset / GetVehicleObjectPositionWorld to calculate the position and rotation from a normal object to an attached object / vice versa
Well, I didn't intend to add functions for special cases but putting these in the example section would be copy and paste
PHP код:
GetVehicleObjectPositionWorld(vehicleid, Float: att_X, Float: att_Y, Float: att_Z, Float: att_rotX, Float: att_rotY, Float: att_rotZ, &Float: X, &Float: Y, &Float: Z, &Float: rotX, &Float: rotY, &Float: rotZ)
GetVehicleObjectPositionOffset(vehicleid, Float: X, Float: Y, Float: Z, Float: rotX, Float: rotY, Float: rotZ, &Float: att_X, &Float: att_Y, &Float: att_Z, &Float: att_rotX, &Float: att_rotY, &Float: att_rotZ)