Difference between revisions of "LlGetCameraRot"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/permission|PERMISSION_TRACK_CAMERA}}{{LSL_Function
|func_id=304
|func_id=304
|func_sleep=0.0
|func_sleep=0.0
Line 13: Line 13:
|also_functions={{LSL DefineRow||{{LSLG|llGetCameraPos}}|}}
|also_functions={{LSL DefineRow||{{LSLG|llGetCameraPos}}|}}
|notes
|notes
|sort=GetCameraRot
|permission=PERMISSION_TRACK_CAMERA
|cat1=Camera
|cat1=Camera
|cat2
|cat2

Revision as of 16:27, 20 July 2007

Summary

Function: rotation llGetCameraRot( );
0.0 Forced Delay
10.0 Energy

Returns a rotation that is the current camera orientation for the agent the task has permissions for.

To run this function the script must request the PERMISSION_TRACK_CAMERA permission with llRequestPermissions.

Caveats

Permissions
  • 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
•  llGetCameraPos

Articles

•  Script permissions

Deep Notes

Signature

function rotation llGetCameraRot();