முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

GetObjectAttachedOffset

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Get the attachment offset and rotation of an object.

NameDescription
objectidThe ID of the 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;

GetObjectAttachedOffset(objectid, offsetX, offsetY, offsetZ, rotationX, rotationY, rotationZ);