Difference between revisions of "State exit/fr"

From Second Life Wiki
Jump to navigation Jump to search
m (fixes)
Line 1: Line 1:
{{LSL_Event
{{LSL_Event/fr
|event_id=1|event_delay|event=state_exit
|event_id=1|event_delay|event=state_exit
|event_desc=Déclenché dans une condition de transition de l'état ([[state/fr]]).
|event_desc=Déclenché lors d'une requalification de [[state/fr|l'état]] du script.
|constants
|constants
|spec
|spec
Line 47: Line 47:
|mode
|mode
|deprecated
|deprecated
|cat1=Script
|cat1=Script/fr
|cat2=State
|cat2=State/fr
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 06:11, 23 January 2008

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.