Aller au contenu principal

GetPlayerObjectSyncRotation

attention

La fonctionnalité de type fonction a été ajoutée dans la version omp v1.1.0.2612 et ne fonctionne pas avec les versions antérieures !

Description​

Get the sync rotation of a player-object.

NameDescription
playeridThe ID of the player.
objectidThe 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