Difference between revisions of "State exit"

From Second Life Wiki
Jump to navigation Jump to search
Line 5: Line 5:
|spec
|spec
|caveats
|caveats
|examples
|examples=
<Pre>
default
{
    state_entry()
    {
        llOwnerSay("in default state");
    }
    touch_start(integer detected)
    {
        state other;
    }
    state_exit()
    {
        llOwnerSay("leaving default state");
    }
}
 
state other
{
    state_entry()
    {
        llOwnerSay("in state \"other\"");
    }
    touch_start(integer detected)
    {
        state default;
    }
    state_exit()
    {
        llOwnerSay("leaving state \"other\"");
    }
}</Pre>
|helpers
|helpers
|also_header
|also_header

Revision as of 04:50, 27 September 2007