C L

Camera

SL includes both first-person and third-person camera modes. By disconnecting the camera from the avatar (to around 50m max away [see Notes below]), a lot more can be done otherwise. Some uses of the camera functions are...

llClearCameraParams

llClearCameraParams() Resets all camera parameters to default values and turns off scripted camera control. Requires llRequestPermissions(key agent, PERMISSION_CONTROL_CAMERA). The agent (avatar camera) this function targets is the agent that gave...

llForceMouselook

llForceMouselook(integer mouselook) After calling this function with mouselook set to TRUE, any agent sitting down on the prim will be forced into mouselook. Just like llSitTarget, this changes a...

llGetCameraPos

vector llGetCameraPos() Returns the position of the camera of the user that granted the script PERMISSION_TRACK_CAMERA. If no user has granted the permission, it returns ZERO_VECTOR. Q: Is this in region coordinates? A: Yes. To determine...

llGetCameraRot

rotation llGetCameraRot() Returns the rotation of the camera of the user who’s granted this script PERMISSION_TRACK_CAMERA. If no user has granted the permission, it returns ZERO_ROTATION. The key of the user whose camera is being...

llReleaseCamera

llReleaseCamera(key agent) A FollowCam function that returns the camera to the key agent after permission to change it with llSetCameraParams has been granted via llRequestPermissions(agent_key,...