GetObjectRotation

From NPC for VCMP 0.4 Servers
Revision as of 14:51, 14 December 2023 by Habi (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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. relfuncs=