State exit/fr

From Second Life Wiki
< State exit
Revision as of 06:11, 23 January 2008 by Gally Young (talk | contribs) (fixes)
Jump to navigation Jump to search

Description

Event: state_exit( ){ ; }

Déclenché lors d'une requalification de l'état du script.


Exemples

default
{
    state_entry()
    {
        llOwnerSay("Etat par défaut");
    }
    touch_start(integer detected)
    {
        state other;
    }
    state_exit()
    {
        llOwnerSay("On quitte l'état par défaut");
    }
}

state other
{
    state_entry()
    {
        llOwnerSay("Dans l'état \"autre\"");
    }
    touch_start(integer detected)
    {
        state default;
    }
    state_exit()
    {
        llOwnerSay("On quitte l'état \"autre\"");
    }
}
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.