Difference between revisions of "LlStartAnimation/fr"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{Multi-lang}} {{LSL_Function/permission|PERMISSION_TRIGGER_ANIMATION}}{{LSL_Function/inventory|anim|uuid=false|type}}{{LSL_Function/fr |func_id=129|func_sleep=0.0|func_energy=10.0 |func=l...)
 
Line 35: Line 35:
</Pre>
</Pre>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llStopAnimation]]|}}
|also_functions={{LSL DefineRow||[[llStopAnimation]]|Arrete une animation}}
|also_tests
|also_tests
|also_events
|also_events

Revision as of 14:07, 10 January 2008

Description

Fonction: llStartAnimation( string anim );

Lance l'animation anim pour l'agent qui a donné au script le pouvoir PERMISSION_TRIGGER_ANIMATION et si les pouvoirs n'ont pas été révoqués depuis.

• string anim an item in the inventory of the prim this script is in

To run this function the script must request the PERMISSION_TRIGGER_ANIMATION permission with llRequestPermissions.

Avertissements

Permissions
  • If anim is missing from the prim's inventory then an error is shouted on DEBUG_CHANNEL.

Exemples

default
{
    touch_start(integer detected)
    {
        llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION);
    }
    run_time_permissions(integer perm)
    {
        if (perm & PERMISSION_TRIGGER_ANIMATION)
        {
            llStartAnimation("sit");
            llOwnerSay("animation will end in 5 seconds");
            llSetTimerEvent(5.0);
        }
    }
    timer()
    {
        llSetTimerEvent(0.0);
        llStopAnimation("sit");
    }
}

Voir également

Évènement

•  run_time_permissions Permission receiving event

Fonctions

•  llGetPermissions Get the permissions granted
•  llGetPermissionsKey Get the agent who granted permissions
•  llRequestPermissions Request permissions
•  llStopAnimation Arrete une animation

Articles

•  Script permissions
•  Internal_Animations Donne la liste des animations toujours disponibles dans SL
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.