Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetScriptState Wiki Update?

Douglas Callahan
Fresh Prince Of SL
Join date: 2 Jul 2004
Posts: 349
09-02-2007 21:41
Hey my fellow metaversans, metaversayans, metaverseeons (haha anchor man),

I had a question about llSetScriptState(). The wiki says that

From: someone
While this function can be used to stop any script, it can only be used to start scripts which were stopped by an llSetScriptState function call. The following three cases are the primary reasons why a script cannot be started with this function:

The stopped script was stopped because of an error.
The stopped script is stopped because the "Running" box is unchecked.
The stopped script is stopped because it was added to the object directly from another object (via llGiveInventory). Use llRemoteLoadScriptPin instead.


But after a test, I found that I was able to uncheck the "Running" box in a script and have another script set it to running using this anyway.

The wiki also says:

From: someone
This function allows toggling the "Running" checkbox of a script in the same prim. Note that this has nothing to do with states in LSL.


So doesn't this mean that this function can, in fact, be used to start a script that has its "Running" box unchecked?
_____________________
Other than that, Mrs. Lincoln, how was the play?
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
09-02-2007 21:55
I don't get it.. Why bother with the Running checkbox if it doesn't actually start/stop the script? Or is that a bug?
Douglas Callahan
Fresh Prince Of SL
Join date: 2 Jul 2004
Posts: 349
09-02-2007 21:57
I have a script that I don't want to be running until another script verifies something, so I uncheck it's "Running" box. The other script seems to be able to set it back to running, even though the wiki says it shouldn't be able to.
_____________________
Other than that, Mrs. Lincoln, how was the play?
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
09-02-2007 22:07
Oh.. Thought that 2nd quote was saying it could toggle the checkbox but not the script state.. Never mind.. :)
Simil Miles
Creator
Join date: 1 Mar 2007
Posts: 300
09-03-2007 09:06
Either LL made a change or the wiki has always been wrong, I corrected it anyway.
_____________________
UnConWTech @ Flo (144, 84, 224) http://unconwtech.free.fr

SL books http://astore.amazon.com/secondlife-sl-20/

Need a beta tester for quality assurance ?
Need a translator for English, French, Spanish ?