Demonstration object for the llMessageLinked() function. This function allows controlling mulitiple scripts in an object. This has 6 very simple scripts. The main script is in the base and one simple script in each of the 5 bulbs. Touch the base to start the main script in the base. This will address and trigger each of the scripts in the bulbs to turn on and off one at a time creating a sequence of flashing lights. This first ffect can also be done with llSetLinkPrimitiveParamsFast(). However the big difference is that llMessageLinked(), since it is a program, can also light any of the bulbs individually if you click on them while the bulbs are sequencing. llSetLinkPrimitiveParamsFast() can not do this.
This is better than other examples because it shows how to address prims based on their object names rather than the random numbers assigned to each prim when they are linked. Using this programming method prims can be linked and unlinked in any order and the code will always address the correct prim. This technique is very helpful when objects get very large and complex with multiple linked prims.
You should get a copy of both llMessageLinked() and llSetLinkPrimitiveParamsFast() demonstration items so you can compare. They both have advantages depending on the complexity of what you plan to do. In short, the simplest is llSetLinkPrimitiveParamsFast(). Use to control prims directly. llMessageLinked() is more complex and used to control programs in each prim or multiple programs in the same prim.
- Demonstration of the llMessageLinked() function.
- Click on base to sequentially flash the bulbs.
- Click on individual bulb to flash the bulb
- Technique for addressing prims by their object name
Excellent
Thank you! :)