Przejdź do głównej zawartości

GetPlayerObjectAttachedOffset

warning

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Get the attachment offset and rotation of a player-object.

NameDescription
playeridThe ID of the player.
objectidThe ID of the player-object to get the offset and rotation of.
&Float:offsetXA float variable in which to store the offsetX coordinate, passed by reference.
&Float:offsetYA float variable in which to store the offsetY coordinate, passed by reference.
&Float:offsetZA float variable in which to store the offsetZ coordinate, passed by reference.
&Float:rotationXA float variable in which to store the rotationX coordinate, passed by reference.
&Float:rotationYA float variable in which to store the rotationY coordinate, passed by reference.
&Float:rotationZA 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 
Float:offsetX,
Float:offsetY,
Float:offsetZ,
Float:rotationX,
Float:rotationY,
Float:rotationZ;

GetPlayerObjectAttachedOffset(playerid, playerobjectid, offsetX, offsetY, offsetZ, rotationX, rotationY, rotationZ);