05-31-2004 16:35
Simple animation stopper for SL 1.4

CODE

//Coded by Strife Onizuka
//Public Domain

default
{
state_entry()
{
llSetText("Stop All Running Animations",<1,1,1>,1);
}
touch_start(integer total_number)
{
llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION);
}
run_time_permissions(integer a)
{
if (a & PERMISSION_TRIGGER_ANIMATION)
{
list a=llGetAnimationList(llGetPermissionsKey());
integer b;
key c;
for (b;b<llGetListLength(a);b++)
//sometimes it gives you a null key, it's a bug.
if (c = llList2Key(a,b))
llStopAnimation((string)c);
}
}
}


little update to make it run faster.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey