SCRIPT: Pounce Recipient
Script below allow your avatar to receive pounce action from Nargus S-2 Raptor actions. Please contact Nargus Asturias for animation found within the script.
Associated Animation Loader
integer associateChannel = 14352; list actionAnimations = [ "_Get Pounced", "Get Pounced" ]; // Variables key owner; list runningAnims; // List of all animations started by script runAnimation(string name){ llStartAnimation(name); if(llListFindList(runningAnims, [name]) < 0) runningAnims += [name]; } stopAnimation(string name){ if(name == "") return; llStopAnimation(name); // Update running animations list integer index = llListFindList(runningAnims, [name]); if(index >= 0) runningAnims = llDeleteSubList(runningAnims, index, index); } default{ state_entry(){ owner = llGetOwner(); if(llGetAttached()) llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); } on_rez(integer start_param){ llResetScript(); } run_time_permissions(integer perm){ if(perm == (PERMISSION_TRIGGER_ANIMATION)) state Ready; else llOwnerSay("Permission failed. Script halted."); } } state Ready{ state_entry(){ runningAnims = []; llListen(associateChannel, "", NULL_KEY, ""); } attach(key id){ if(id == NULL_KEY){ integer count = llGetListLength(runningAnims); integer i; for(i=0; i< 0) return; string anim = llList2String(actionAnimations, index+1); if(cmd == "RUN_ANIM") runAnimation(anim); else if(cmd == "STOP_ANIM") stopAnimation(anim); } }