Ana içeriğe geç

GetPlayerObjectMovingTargetRot

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 a player-object.

NameDescription
playeridThe ID of the player.
objectidThe ID of the player-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 playerobjectid = CreatePlayerObject(playerid, 968, 1023.79541, -943.75879, 42.31450,   0.00000, 0.00000, 10.00000);
MovePlayerObject(playerid, playerobjectid, 1023.79541, -943.75879, 42.31450, 0.8, 0.00000, -90.00000, 10.00000);

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

GetPlayerObjectMovingTargetRot(playerid, playerobjectid, rotationX, rotationY, rotationZ);
// rotationX = 0.00000
// rotationY = -90.00000
// rotationZ = 10.00000