LlStartAnimation/fr

From Second Life Wiki
Jump to navigation Jump to search

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.