warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for 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.