Difference between revisions of "State exit/fr"

From Second Life Wiki
Jump to navigation Jump to search
(modification in progress)
 
Line 11: Line 11:
     state_entry()
     state_entry()
     {
     {
         llOwnerSay("in default state");
         llOwnerSay("Etat par défaut");
     }
     }
     touch_start(integer detected)
     touch_start(integer detected)
Line 19: Line 19:
     state_exit()
     state_exit()
     {
     {
         llOwnerSay("leaving default state");
         llOwnerSay("On quitte l'état par défaut");
     }
     }
}
}
Line 27: Line 27:
     state_entry()
     state_entry()
     {
     {
         llOwnerSay("in state \"other\"");
         llOwnerSay("Dans l'état \"autre\"");
     }
     }
     touch_start(integer detected)
     touch_start(integer detected)
Line 35: Line 35:
     state_exit()
     state_exit()
     {
     {
         llOwnerSay("leaving state \"other\"");
         llOwnerSay("On quitte l'état \"autre\"");
     }
     }
}</Pre>
}</Pre>

Revision as of 09:37, 20 January 2008

Description

Event: state_exit( ){ ; }

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


Examples

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

Deep Notes

Signature

event void state_exit(  );