New Stuff
This commit is contained in:
16
Play_Animation_On_Attach/new.lsl
Normal file
16
Play_Animation_On_Attach/new.lsl
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
default {
|
||||
attach(key attached) {
|
||||
if (attached != NULL_KEY) {
|
||||
llRequestPermissions(attached, PERMISSION_TRIGGER_ANIMATION);
|
||||
} else {
|
||||
llStopAnimation(llGetInventoryName(INVENTORY_ANIMATION, 0));
|
||||
}
|
||||
}
|
||||
run_time_permissions(integer perms) {
|
||||
if(perms & (PERMISSION_TRIGGER_ANIMATION))
|
||||
{
|
||||
llStartAnimation(llGetInventoryName(INVENTORY_ANIMATION, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user