G General

Dvandva Switch Between Script

Dvandva Switch Between Script
Details
Features
Contents
Reviews

Dvandva Switch Between Script

This script allows you to switch between 2 sets of prims by changing their transparency so only one group is visible at a time. This script will automatically update then on/off sets when you link or unlink a prim or when the prim set is rezzed. There is also a Linked Message interface so you can control the prims from another script in the link set.

Instructions

1) Change the Next Owner Permissions of the script to Copy only or Transfer only.

2) In one set of prims you want to control put the word 'on' (no quotes) in the description field.

3) In the other set of prims you want to control put the word 'off' (no quotes) in the description field.

4) Drop the script into the prim you want to touch for control.

Your all set! Now just click the control prim and the sets will switch.

===============================================

Linked Message Interface

llMessageLinked(LINK_ALL_OTHERS,10000,"on","") - make "on" set visible and "off" set transparent.
llMessageLinked(LINK_ALL_OTHERS,10000,"off","") - make "off" set visible and "on" set transparent.
llMessageLinked(LINK_ALL_OTHERS,10000,"switch","") - switch between the on set and off set being visible.

See item in Second Life