05-04-2013, 11:29 AM
PHP Code:
string ANIM_DEFAULT = "wheelchairsit4"; // <--- this is where you put the name of your animation
// don't forget to put the animation in the camera inventory, together with this script
default {
attach(key id) {
if (id == NULL_KEY) { // detach
if (llGetPermissions() & PERMISSION_TRIGGER_ANIMATION) llStopAnimation(ANIM_DEFAULT);
} else { // attach
llRequestPermissions(id, PERMISSION_TRIGGER_ANIMATION);
}
}
run_time_permissions(integer perm) {
if (perm & PERMISSION_TRIGGER_ANIMATION) {
llStartAnimation(ANIM_DEFAULT);
}
}
}