Przejdź do głównej zawartości

GetPlayerAttachedObject

warning

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

Description

Gets the player attachment object data by index.

NameDescription
playeridThe ID of the player whose data to get.
indexThe index (slot) to the object (0-9).
&modelidAttached object model.
&boneAttached object bone.
&Float:offsetXX axis offset of the object.
&Float:offsetYY axis offset of the object.
&Float:offsetZZ axis offset of the object.
&Float:rotationXX axis rotation of the object.
&Float:rotationYY axis rotation of the object.
&Float:rotationZZ axis rotation of the object.
&Float:scaleXX axis scale of the object.
&Float:scaleYY axis scale of the object.
&Float:scaleZZ axis scale of the object.
&materialColour1Material colour 1 of the object.
&materialColour2Material colour 2 of the object.

Returns

Always returns true.

Examples

new 
modelid,
bone,
Float:offsetX, Float:offsetY, Float:offsetZ,
Float:rotationX, Float:rotationY, Float:rotationZ,
Float:scaleX, Float:scaleY, Float:scaleZ,
materialColour1, materialColour2;

// Get the attached data of index 3
GetPlayerAttachedObject(playerid, 3, modelid, bone, offsetX, offsetY, offsetZ, rotationX, rotationY, rotationZ, scaleX, scaleY, scaleZ, materialColour1, materialColour2);