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.