|
Voodoo Lubitsch
Registered User
Join date: 25 Jan 2008
Posts: 11
|
08-05-2008 04:02
Hi
If I wanted a prim object to contain a script that controlled other scripts (turning them on and off) on the sim could it be done using llSetScriptState.
I suppose an example of the use would if someone opened a door to an unoccupied building it would switch on the rest of the scripts in the building..
Any help would be appreciated
Voodoo
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
08-05-2008 04:50
From: Voodoo Lubitsch If I wanted a prim object to contain a script that controlled other scripts (turning them on and off) on the sim could it be done using llSetScriptState.
You can do it if the scripts are prepared for it or if you have a help script in each prim. llSetScriptState() works only inside a prim, the scope of it is the content of the same prim the script is in.
_____________________
From Studio Dora
|
|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
08-05-2008 05:02
Think this is what Dora is saying. You would need a script in each object (helper script) that would listen for a Shout or Email messaged from the controlling object. The helper script would turn the scripts on or off in the prim it is in. It could send linked messages to the other prims of the object which could do the same.
|