Edie_Shoreland icon

Automatic Animation Changer without Occupancy Flag

Edie_Shoreland | PRO | 08/30/18 10:04:28 AM UTC | 0 ⭐ | 8895 👁️ | Never ⏰ | []
Linden Scripting |

0 B

|

None

|

0 👍

/

0 👎

//This script was originally designed for gachas using AVSitter, but is also ideal for
//objects that can be modified containing AVpos notecards that cannot be edited or
//for AVpos notecards (like ones in gacha items) that you may not want to edit.
 
//CHANGE THE NAMES IN ani_names TO THE NAMES OF ANIMATIONS IN THE SIT MENU/AVpos NOTECARD
//YOU WANT TO RANDOMLY CYCLE THROUGH. (You can add more names, just use quotation marks.)
list ani_names = ["Male_01", "Male_05", "Male_06", "Male_10", "Female_05", "Female_06", "Female_08", "Male_08"];
 
//CHANGE THE INTEGER IN Tcycle TO THE NUMBER OF SECONDS YOU WANT BETWEEN ANIMATION AND
//POSE CHANGES.
integer Tcycle = 110;
 
float randomFloat;
string aniname;
integer aninumber;
integer synched; 
 
 
 
default
{
    state_entry()
    {
        synched = llGetListLength(ani_names);
        llSetTimerEvent(Tcycle);
    }
    
    timer()
    {
        randomFloat = llFrand(synched);
        aninumber = (integer)randomFloat;
        aniname = llList2String(ani_names, aninumber);
        llMessageLinked(LINK_SET,90000,aniname,"0");
    }
 
    changed(integer change)
    {
        if (change & CHANGED_INVENTORY) llResetScript();
    }
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎