note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
GetObjectAttachedOffset
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 an object.
Name | Description |
---|---|
objectid | The ID of the object to get the offset and rotation of. |
&Float:offsetX | A float variable in which to store the offsetX coordinate, passed by reference. |
&Float:offsetY | A float variable in which to store the offsetY coordinate, passed by reference. |
&Float:offsetZ | A float variable in which to store the offsetZ coordinate, passed by reference. |
&Float:rotationX | A float variable in which to store the rotationX coordinate, passed by reference. |
&Float:rotationY | A float variable in which to store the rotationY coordinate, passed by reference. |
&Float:rotationZ | A 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;
GetObjectAttachedOffset(objectid, offsetX, offsetY, offsetZ, rotationX, rotationY, rotationZ);
Related Functions
- GetObjectAttachedData: Get the attachment data of an object.
- GetPlayerObjectAttachedOffset: Get the attachment offset and rotation of a player-object.