I need a second script that let me off with a voice command the first script and reactivate when necessary.
someone can help me?

These forums are CLOSED. Please visit the new forums HERE
silence script |
|
|
CarloDM Demme
Registered User
Join date: 15 Jun 2007
Posts: 44
|
06-23-2008 13:26
I put in one of my objects a script (unfortunately no modify) that writes phrases in public chat continaully.
I need a second script that let me off with a voice command the first script and reactivate when necessary. someone can help me? ![]() |
|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
06-23-2008 13:43
If you need a second script, how about using llSetScriptState( string name, integer run ) to turn the other script on and off.
|
|
CarloDM Demme
Registered User
Join date: 15 Jun 2007
Posts: 44
|
06-23-2008 14:41
ah ok.
thank you ![]() this is what i need, i believe // Stops 'ScriptName' (in the prim's inventory) llSetScriptState("ScriptName", FALSE); // Start 'ScriptName' (in the prim's inventory) llSetScriptState("ScriptName", TRUE); but i'm not a scipter. how can i put in on and off in the same script if i touch llSetScriptState=True and if i touch again llSetScriptState=False ? i know i must use "else" but i'll do surely sintax errors. could you help me? |
|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
06-23-2008 15:35
Well there are a number of ways to do it. You could just set up a listen on a specific channel and then chat something like script_on or script_off.
The touch that you described would work like this: CODE
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
06-23-2008 20:54
I'm not 100 percent sure you can set the script state of a no mod script....
http://www.secondscripter.com _____________________
My tutes
http://www.youtube.com/johanlaurasia |
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
06-23-2008 23:18
CODE
|
|
CarloDM Demme
Registered User
Join date: 15 Jun 2007
Posts: 44
|
06-24-2008 01:50
it works!
thank you a lot everybody |