|
Ged Larsen
thwarted by quaternions
Join date: 4 Dec 2006
Posts: 294
|
03-22-2007 03:56
I've been playing with scripted camera control. The only problem is that of the 5 camera modes: - seated avatar
- standing avatar
- alt-zoom
- customize avatar
- mouselook
...scripted camera control fails silently for the latter 3. llGetAgentInfo() will tell me if the avatar is in mouselook, but is there a way to use LSL to determine if the avatar is either in alt-zoom or customize avatar camera modes? Or (and I think the answer is no), is there a way for a script which has PERMISSION_CONTROL_CAMERA to FORCE the camera mode back to one of the first two default modes? Or else, do I just have to make sure that I always hit ESCAPE 2 or 3 times before using a script that's supposed to control the camera? Thanks.
_____________________
- LoopRez, flexi prim skirt generating tool - LinkRez, a necklace chain generator
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
03-22-2007 04:03
Have to hit escape 2 or 3 times. Sorry. It bothers me too. Makes dragable HUDs a pain (you lock the camera position so it doesn't move while dragging the hud, but the problem is half the time it isn't in a camera mode where it can be locked by script).
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
|
Ged Larsen
thwarted by quaternions
Join date: 4 Dec 2006
Posts: 294
|
03-22-2007 04:20
From: Strife Onizuka Have to hit escape 2 or 3 times. Sorry. It bothers me too. Makes dragable HUDs a pain (you lock the camera position so it doesn't move while dragging the hud, but the problem is half the time it isn't in a camera mode where it can be locked by script). Thanks for the answer, Strife. I sort of suspected that, but have missed obvious solutions in the past (for example, wasn't sure and hadn't tested yet whether llGetCameraPos/Rot would vary from some default values in the other modes.)
_____________________
- LoopRez, flexi prim skirt generating tool - LinkRez, a necklace chain generator
|