State exit/fr
Jump to navigation
Jump to search
| LSL Portail Francophone | LSL Portail Anglophone | Fonctions | Évènements | Types | Operateurs | Constantes | Contrôle d'exécution | Bibliothèque | Tutoriels |
Description
Event: state_exit( ){ ; }Exemples
<lsl> 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\"");
}
}</lsl>
Notes
Alors que l'état "default" lance state_entry sur une reinitialisation du script, state_exit n'est pas lancé avant la réinitialisation.
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.