|
LostInKgp Kanik
Registered User
Join date: 23 May 2008
Posts: 10
|
07-08-2008 01:13
------------------------------------------------------------------------- default { touch_start(integer number) { llSetCameraParams([CAMERA_ACTIVE,TRUE,CAMERA_POSITION, llGetPos()+<0,0,5>,CAMERA_FOCUS, llGetPos(),CAMERA_POSITION_LOCKED,TRUE,CAMERA_FOCU S_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) ???
|
|
Novis Dyrssen
Girl Geek
Join date: 6 May 2007
Posts: 1,452
|
07-08-2008 01:20
Maybe you should ask whoever wrote the script?
_____________________
~~ immortal words of Rob Thomas ~~ Hey-yeah, welcome to the Real World Nobody told you it was gonna be hard
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
07-08-2008 02:05
I guess I'd suggest stopping by Torley's office in Linden village and finding the little cache of webcam scripts he has there and looking through them. The relevant LSL function is llReleaseCamera() ( http://lslwiki.net/lslwiki/wakka.php?wakka=llReleaseCamera). How the script should call it is what the actual script is *about*; that is, if it's going to respond to control keys from the keyboard, it would have to do all the work entailed by llTakeControls() and handling the associated control() events. If it just wants to toggle by touch (since it seems to be turning on by touch now), it would have a global variable remembering what state it was in the last time it touched (or, equivalently, use LSL "state"  . Or, just detach or stand up from whatever object contains this script. Camera controls can only be had by objects one sits on or attaches. Which reminds me: there should be an llRequestPermissions() call in there somewhere. So, see the Torley cam script collection first.
_____________________
Archived for Your Protection
|