Jump to content

LlGetCameraPos

From OSgrid Wiki
Revision as of 22:14, 31 December 2017 by Osgridadmin (talk | contribs) (Created page with "== Function: vector llGetCameraPos( );== Returns a vector that is the current camera position for the agent the task has permissions for. <br> Requires the PERMISSION_TRACK_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function: vector llGetCameraPos( );

Returns a vector that is the current camera position for the agent the task has permissions for.
Requires the PERMISSION_TRACK_CAMERA permission to run.

Caveats
• Do not depend upon the auto-grant status of permissions. Always use the run_time_permissions event.
• If the script lacks the permission PERMISSION_TRACK_CAMERA, the script will shout an error on DEBUG_CHANNEL and the operation fails (but the script continues to run).
• Once the PERMISSION_TRACK_CAMERA permission is granted there is no way to revoke it. The script will only lose the permission if it is reset or the object derezzed (deleted, detached, or taken).
• Seems to act weird when the camera gets too far from the agent.

Examples
See Also
Events
• run_time_permissions – Permission receiving event
Functions
• llGetPermissions – Get the permissions granted
• llGetPermissionsKey – Get the agent who granted permissions
• llRequestPermissions – Request permissions
• llGetCameraRot
• llSetCameraParams
• llSetCameraAtOffset
• llSetCameraEyeOffset