Przejdź do głównej zawartości

GetObjectMovingTargetRot

warning

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Get the move target rotation of an object.

NameDescription
objectidThe ID of the object to get the move target rotation of.
&Float:rotationXA float variable in which to store the rotationX coordinate, passed by reference.
&Float:rotationYA float variable in which to store the rotationY coordinate, passed by reference.
&Float:rotationZA float variable in which to store the rotationZ coordinate, passed by reference.

Returns

true - The function was executed successfully.

false - The function failed to execute. The object specified does not exist.

Examples

new objectid = CreateObject(968, 1023.79541, -943.75879, 42.31450,   0.00000, 0.00000, 10.00000);
MoveObject(objectid, 1023.79541, -943.75879, 42.31450, 0.8, 0.00000, -90.00000, 10.00000);

new
Float:rotationX,
Float:rotationY,
Float:rotationZ;

GetObjectMovingTargetRot(objectid, rotationX, rotationY, rotationZ);
// rotationX = 0.00000
// rotationY = -90.00000
// rotationZ = 10.00000