Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Set Scripts Running/not Running In Selelction

Tony Holiday
Registered User
Join date: 26 May 2005
Posts: 6
10-30-2005 09:37
I'd like to point out now with the new version that you can no longer sellect an object and set all script in it not to running or running. you have to actully dig deep into the object on each single prim that has a script in it...meaning to say massive prim objects are a pain to stop or start. Any cahnce on setting back to the way it was...where we could simply highlight the whole object and set all scripts in it to stop or run?
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
11-01-2005 10:31
Add this to the code in your prim scripts, duplicated for each state...

CODE

default
{
link_message(integer from, integer num, string str, key id)
{
if(str == "stop") state default_stopped;

// rest of any existing link_message code
}
// rest of state default
}

state default_stopped
{
link_message(integer from, integer num, string str, key id)
{
if(str == "start") state default;
}
}


Then have the root prim llMessageLinked(LINK_SET, 0, "stop", NULL_KEY) to stop, and vice-versa to start...