Be happy
Revision as of 02:03, 21 October 2012 by Kireji Haiku (talk | contribs) (a few minor readability improvements)
Put this script in an attachment to make your avatar smile.
<lsl> // be happy
default {
attach(key attached) { if (attached) llResetScript(); // else // has been detached }
state_entry() { key owner = llGetOwner();
llRequestPermissions(owner, PERMISSION_TRIGGER_ANIMATION); }
run_time_permissions(integer perm) { if(perm & PERMISSION_TRIGGER_ANIMATION) llSetTimerEvent(5.0); }
timer() { llStartAnimation("express_toothsmile"); }
} </lsl>