Linden Scripting Language Guide - Engineering Center
Linden Scripting Language Guide - Engineering Center
Linden Scripting Language Guide - Engineering Center
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Chapter 4. Flow Controlkeyword ’state’ before its name and enclosing the event handlers with open and close curly braces (’{’ and ’}’.)You can invoke the transition to a new state by calling it with the syntax: ’state ’.default{state_entry(){llSay(0, "I am in the default state");llSetTimer(1.0);}}timer(){state SpinState;}state SpinState{state_entry(){llSay(0, "I am in SpinState!");llTargetOmega(, 4, 1.0);llSetTimer(2.0);}timer(){state default;}}state_exit(){llTargetOmega(, 0, 0.0);}16