Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lookAtPanel( )
- {
- if ( llGetPermissions() & PERMISSION_CONTROL_CAMERA )
- {
- llOwnerSay("Controlling the camera...");
- vector camFocus = llGetPos(); //<81, 230, 30> ;
- vector camPos = camFocus + <3, 0, 0>;
- llClearCameraParams(); // reset camera to default
- llSetCameraParams([
- CAMERA_ACTIVE, TRUE, // 1 is active, 0 is inactive
- CAMERA_FOCUS, camFocus, // region relative position
- CAMERA_POSITION, camPos, // region relative position
- CAMERA_FOCUS_LOCKED, TRUE, // (TRUE or FALSE)
- CAMERA_POSITION_LOCKED, TRUE // (TRUE or FALSE)
- ]);
- }
- else
- llOwnerSay("This object doesn't have permission over the avie");
- }
Add Comment
Please, Sign In to add comment