llGetRootRotation
LSLrotation llGetRootRotation()
Returns the rotation (relative to the region) of the root prim of the object which the script is attached to.\ Gets the global rotation of the root object of the object script is attached to.
Takes no parameters.
Energy
10
The Linden Scripting Library — what every SL-compatible grid provides.