Drink Animation 2 - Printable Version +- Second Life Copybot (https://secondlifecopybot.com) +-- Forum: SECOND LIFE PRODUCTS (https://secondlifecopybot.com/forum-1.html) +--- Forum: SCRIPTS (https://secondlifecopybot.com/forum-1022.html) +---- Forum: SCRIPTS (https://secondlifecopybot.com/forum-8.html) +----- Forum: Avatar Augmentation Scripts (https://secondlifecopybot.com/forum-51.html) +----- Thread: Drink Animation 2 (/thread-1231.html) |
Drink Animation 2 - YoungMoney - 03-04-2013 // Requests permission to activate drink animation // Author: unknown integer flag = 0; default { state_entry() { llRequestPermissions(llGetOwner(),PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer parm) { if(parm == PERMISSION_TRIGGER_ANIMATION) { //llWhisper(0,"Coco make you feel better :)"); llSetTimerEvent(15); llStartAnimation("hold_R_handgun"); } } on_rez(integer st) { llResetScript(); } attach(key id) { llStopAnimation("hold_R_handgun"); } timer() { if(flag == 1) { llStartAnimation("drink"); } if(flag == 3) { llStartAnimation("drink"); } flag = flag + 1; if(flag == 4) { flag = 0; } } listen(integer channel, string name, key id, string message) { } } |