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.
GetPlayerObjectSyncRotation
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Get the sync rotation of a player-object.
Name | Description |
---|---|
playerid | The ID of the player. |
objectid | The ID of the player-object. |
Returns
Returns the sync rotation of the player-object as boolean (true
/false
).
Examples
new objectid = CreatePlayerObject(...);
new parentid = CreatePlayerObject(...);
AttachPlayerObjectToObject(playerid, objectid, parentid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, true);
new bool:syncRotation = GetPlayerObjectSyncRotation(playerid, objectid);
// syncRotation = true
Related Functions
- AttachPlayerObjectToObject: Attach player-objects to other player-objects.
- GetObjectSyncRotation: Get the sync rotation of an object.