Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

camera gets locked at a point

LostInKgp Kanik
Registered User
Join date: 23 May 2008
Posts: 10
07-08-2008 00:10
-------------------------------------------------------------------------
default
{
touch_start(integer number)
{
llSetCameraParams([CAMERA_ACTIVE,TRUE,CAMERA_POSITION, llGetPos()+<0,0,5>,CAMERA_FOCUS, llGetPos(),CAMERA_POSITION_LOCKED,TRUE,CAMERA_FOCUS_LOCKED,TRUE]);
}
}
--------------------------------------------------------------------------

This script sets camera at right position but how can i come out of camera view to normal view(by some pressing some key or something) ???
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
07-08-2008 02:27
From: LostInKgp Kanik
-------------------------------------------------------------------------
default
{
touch_start(integer number)
{
llSetCameraParams([CAMERA_ACTIVE,TRUE,CAMERA_POSITION, llGetPos()+<0,0,5>,CAMERA_FOCUS, llGetPos(),CAMERA_POSITION_LOCKED,TRUE,CAMERA_FOCUS_LOCKED,TRUE]);
}
}
--------------------------------------------------------------------------

This script sets camera at right position but how can i come out of camera view to normal view(by some pressing some key or something) ???


This script will toggle camera on and off your setting
CODE
integer camOn = TRUE;
default
{
touch_start(integer number)
{
if ( camOn ) llSetCameraParams([CAMERA_ACTIVE,TRUE,CAMERA_POSITION, llGetPos()+<0,0,5>,CAMERA_FOCUS, llGetPos(),CAMERA_POSITION_LOCKED,TRUE,CAMERA_FOCUS_LOCKED,TRUE]);
else llSetCameraParams([ CAMERA_ACTIVE, FALSE ]);
camOn = !camOn;
}
}
_____________________
From Studio Dora