note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
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.
Name | Description |
---|---|
playerid | The ID of the player. |
objectid | The ID of the player-object to get the move target rotation of. |
&Float:rotationX | A float variable in which to store the rotationX coordinate, passed by reference. |
&Float:rotationY | A float variable in which to store the rotationY coordinate, passed by reference. |
&Float:rotationZ | A 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
Related Functions
- GetPlayerObjectMovingTargetPos: Get the move target position of a player-object.
- GetObjectMovingTargetRot: Get the move target rotation of an object.