State exit/fr

From Second Life Wiki
< State exit
Revision as of 09:28, 20 January 2008 by Alsau Spinotti (talk | contribs) (modification in progress)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

Event: state_exit( ){ ; }

Déclenché dans une condition de transition de l'état.


Examples

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

Deep Notes

Signature

event void state_exit(  );