|
Bonjour,
je suis en train de créer un socle pour poser mon avartar quand je mixe https://gyazo.com/2673d32b1f437ddfbd334f3b17bf0347 en en gros j'ai plusieures animations et j'aimerais bien que le script puisse les utiliser toutes de façon aleatoire et qu'il les change toutes les 60 secondes (par exemple) string animation; // the first animation in inventory will automatically be used // the animation name must be stored globally to be able to stop the animation when standing up default { state_entry() { // set sit target, otherwise this will not work llSitTarget(<0.4, 0.0, 1.0>, ZERO_ROTATION);//Edit to change start location of animation. } changed(integer change) { if (change & CHANGED_LINK) { key av = llAvatarOnSitTarget(); if (av) //evaluated as true if not NULL_KEY or invalid llRequestPermissions(av, PERMISSION_TRIGGER_ANIMATION); else // avatar is standing up { if (animation) llStopAnimation(animation); // stop the started animation llResetScript(); // release the avatar animation permissions } } } run_time_permissions(integer perm) { if (perm & PERMISSION_TRIGGER_ANIMATION) { animation = llGetInventoryName(INVENTORY_ANIMATION,0); // get the first animation from inventory if (animation) { llStopAnimation("sit"); // stop the default sit animation llStartAnimation(animation); } } } } alors pourquoi un socle? parce que comme ça peu importe où je mixe, je peux être toujours réglée à la bonne hauteur et utiliser les animations que je préfére tout en ayant quelque chose qui s'auto gère pendant que je mixe (d'où le besoin de random) je suis pratiquement certaine que c'est possible et je sais que c'est dans animation = llGetInventoryName(INVENTORY_ANIMATION,0); mais je sais pas faire résolut ![]() Dernière modification par *RAV3N* ; 21/09/2020 à 12h13. Motif: résolut |
![]() |
|
Aller à la page... |
script sitter qui utilise toutes les animations, de façon aléatoire en changeant toutes les 60 sec
Suivre Répondre |
|
Partager | Rechercher |
|
Merci MenthalOH
![]() |
![]() |
|
Suivre Répondre |
Connectés sur ce fil1 connecté (0 membre et 1 invité)
Afficher la liste détaillée des connectés
|