GetObjectRotation: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.7 beta and will not work in previous versions. </poem> {{Welcome|desc=Gets the rotation of an object| params=<source>(objectid)</source> objectid : The ID of the object whose rotation is to be calculated.| retvals=The rotation of the object as quaternion. Throws error if object with specified ID does not exist. relfuncs= *IsObjectStreamedIn *GetObjectPos...") |
No edit summary |
||
Line 5: | Line 5: | ||
params=<source>(objectid)</source> | params=<source>(objectid)</source> | ||
objectid : The ID of the object whose rotation is to be calculated.| | objectid : The ID of the object whose rotation is to be calculated.| | ||
retvals=The rotation of the object as quaternion. Throws error if object with specified ID does not exist. | retvals=The rotation of the object as quaternion. Throws error if object with specified ID does not exist.| | ||
relfuncs= | relfuncs= | ||
*[[IsObjectStreamedIn]] | *[[IsObjectStreamedIn]] | ||
Line 11: | Line 11: | ||
*[[GetObjectModel]] | *[[GetObjectModel]] | ||
*[[GetObjectCount]] | *[[GetObjectCount]] | ||
}} | }} |
Latest revision as of 14:52, 14 December 2023
This function was added in v1.7 beta and will not work in previous versions.
Description:
Gets the rotation of an object
Parameters:
(objectid)
objectid : The ID of the object whose rotation is to be calculated.
Return Values:
The rotation of the object as quaternion. Throws error if object with specified ID does not exist.
Related Functions
The following functions may be helpful as they relate to this function in one way or another.