Be happy: Difference between revisions
Jump to navigation
Jump to search
m run_time_permissions |
m cat-fu |
||
| Line 1: | Line 1: | ||
Put this script in an attachment to make your avatar smile. | Put this script in an attachment to make your avatar smile. | ||
| Line 33: | Line 31: | ||
} | } | ||
}</lsl> | }</lsl> | ||
{{LSLC|Examples|Be happy}} | |||
Revision as of 20:15, 12 April 2009
Put this script in an attachment to make your avatar smile.
<lsl>//be happy
default {
state_entry()
{
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
}
run_time_permissions(integer p)
{
if(p & PERMISSION_TRIGGER_ANIMATION)
{
llSetTimerEvent(5.0);
}
}
timer()
{
llStartAnimation("express_toothsmile");
}
attach(key moo)
{
if(moo)
{
llResetScript();
}
}
}</lsl>