2. Root - llMessageLinked In the rootthereshouldbe a touch_starteventwaiting Within the event a llMessageLinkedfunction. And a statedefault. In the nextslideyou’llseeexamples One, the examplethatyouwillfind in the portal of llMessageLinked. Two, the correctlyedited version.
4. Emittingscript– globalparameter & beginning Select the redcylinderwitheditlinked Definea globalvariable/parameter into the script Defineitbeforedefault Amount of seconds to the timerwhichwill stop the emitting
5. EmittingScript – defaultstate_entry Set llParticleSystem to state_entrybutremoveallparameters, sothatonly a shellremains. This is whatyourstate_entryshould look like: Thismake sure that the emitting is not on when the scriptstartsrunning
6. Emittingscript – link_message & ifsentence In the link_messageevent an ifsentence is set to test the strparameter. Which is the messagefrom the root. If the message is correcttimerevent is set Thisuses the timeparameterfromatop the script Then the particleemitting is turned on Ifnotitwillgo to elsebranch and inform the chatchannelthatitisn’tworking and goesback to statedefault
7. Emittingscript – timerevent Inside timerthe llParticleSystem is turnedoffbyremovingit’sparameters. The timer is set to 0 statedefaultreturns to the beginning
8. Copy & PasteyourScript Copy yourscriptfrom the redcylinder. Pasteit to yourinventory into Scripts folder. Select the greencylinderwitheditlinked. Goto the contenttab Drag the scriptfrom the inventory to the contenttab. Select the bluecylinder and repeatthis.
9. Edit the Colorvectors Edit the vectorof PSYS_PART_START_COLOR Images of rgbvectors: Ifyouhavedifferentcolors, search for the vector in LSL Color
10. Testing Click the button, ifyouseered, greenand blueparticlesyou’vesucceeded.
11. llSitTarget In llSitTargetyoucan set the direction the avatarwillfacewhensitting. The firstparameter is a xyzvector. Withtheseyou set the direction The otherone is the relativerotation It’s set to 0 with ZERO ROTATION in thisexample:
12. DoorScript v2 Opening and closingdoorwithrotate. It’s made with a doorframe. Watch itfromthislink: http://www.youtube.com/watch?v=5CuqWC-1w88 OrfromscreenD in SL. Ifyou’vefinished the emitter and tested the llSitTarget, have a go!