Difference between revisions of "State exit"

From Second Life Wiki
Jump to navigation Jump to search
(<lsl> example)
Line 5: Line 5:
|spec
|spec
|caveats
|caveats
|examples=
|examples=<lsl>default
<Pre>
default
{
{
     state_entry()
     state_entry()
Line 37: Line 35:
         llOwnerSay("leaving state \"other\"");
         llOwnerSay("leaving state \"other\"");
     }
     }
}</Pre>
}</lsl>
|helpers
|helpers
|also_header
|also_header

Revision as of 08:24, 11 February 2008

Description

Event: state_exit( ){ ; }

Triggered on a qualifying state transition.


Examples

<lsl>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\"");
   }

}</lsl>

Deep Notes

Signature

event void state_exit(  );