[Recherche] Script pour jouer une animation

Répondre
Partager Rechercher
Bonsoir à tous,

Je suis à la recherche d'un script très simple : il s'agit de porter un petit objet (type sphère transparente) qui me forcerait à jouer en permanence une certaine animation (que j'ai) dès que je le porte.

Quelqu'un aurait-il la gentillesse de le partager, s'il l'a dans sa bibliothèque ?

Merci par avance
string gAnim = "animation"; //mettre ici le nom exact de l' animation à executer, ou sa clé UUID

default
{
attach(key id)
{
if (id == llGetOwner())
{
llRequestPermissions(id, PERMISSION_TRIGGER_ANIMATION);
}
else if (id == NULL_KEY && (llGetPermissions() & PERMISSION_TRIGGER_ANIMATION))
{
llStopAnimation(gAnim);
}
}

run_time_permissions(integer perms)
{
if (perms & PERMISSION_TRIGGER_ANIMATION)
{
llStartAnimation(gAnim);
}
}
}
Citation :
Publié par MenthalOH
string gAnim = "animation"; //mettre ici le nom exact de l' animation à executer, ou sa clé UUID

default
{
attach(key id)
{
if (id == llGetOwner())
{
llRequestPermissions(id, PERMISSION_TRIGGER_ANIMATION);
}
else if (id == NULL_KEY && (llGetPermissions() & PERMISSION_TRIGGER_ANIMATION))
{
llStopAnimation(gAnim);
}
}

run_time_permissions(integer perms)
{
if (perms & PERMISSION_TRIGGER_ANIMATION)
{
llStartAnimation(gAnim);
}
}
}
Super ! il fonctionne ! Un grand merci !
Répondre

Connectés sur ce fil

 
1 connecté (0 membre et 1 invité) Afficher la liste détaillée des connectés