Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Force Mouselook ?

Chris Widget
Widget Isles @ the Edge!
Join date: 22 Jan 2006
Posts: 67
03-09-2006 08:09
I am trying to write a script that will change the status of mouselook every few minutes but so far my attempts to code have failed.

default
{
state_entry
{
llSetTimerEvent(300);
}

timer()
{
// force the avatar into mouselook.
llForceMouselook (1);
// force the avatar to "scan" the horizon
// force the avatar out of mouselook.
llForceMouselook (0);
}
}


Now it seems like the llForceMouselook() function would work using the above logic but it doesn't. My avatar has to sit on the "box" or whatever, and they will get forced into mouselook, but I can't bring the back out automatically it just stays in mouselook until the idle timer eventually kicks me out. This is the very basic beginnings of a script that has grand aspirations.

What I am hoping to end up with is a script that will allow an avatar to log in, start the script, and then send "webcam" type updates to a webpage in the form of a movie recorded during the mouselooks, but that is a long way in the future. Right now I just need to get this script to automatically move in and out of mouselook. Any help is appreciated.
Juelz Smails
Registered User
Join date: 27 Feb 2006
Posts: 11
Reply;
03-09-2006 09:46
May I ask what you want to do this for?...
Byron Overlord
Registered User
Join date: 27 Nov 2005
Posts: 1
03-09-2006 09:57
Based on the LSL Wiki entry for that function (http://secondlife.com/badgeo/wakka.php?wakka=llForceMouselook):

Q: Great, but how do I force someone out of mouselook?
A: Unfortunately, you can't.

Update:

I just saw a script posted by Exlie Loudon which may be of use to you. The post is here: /54/1f/96533/1.html
It toggles between 1st and 3rd person camera view. I thought of this thread when I saw it.