Przejdź do głównej zawartości

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.

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