Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script Target Scope

a lost user
Join date: ?
Posts: ?
08-22-2005 10:28
Alright, a question. In a prim with multiple scripts - if you set the target in one script, is that target accessable from another script? (I.E., what is the target scope?)
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
08-22-2005 17:05
No, scripts don't share info with each other unless the communications is coded into the scripts - via link messages, or something. However, it is possible to share data between multiple scripts within the same prim by setting various prim parameters.

For instance, if you need to share a variable, you can set the prim's name or description fields, and the retrieve the data whenever it's needed.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
08-22-2005 18:17
Are you using target, such as llSitTarget() in a specialised sense here? In which case the answer is no.

Target, like for bullets in a gun or other data sharing, yes, as outlined above. Link messages also work a treat for sharing data as long as you sort your flows sensibly.