Hello! I need to make an object that starts to vibrate when an avatar sits on it and it plays animation. I found such a script of vibration and animation, but how should they be combined together?
vibration
integer k;
integer flip = 1;
list params;
vector pos;
integer link = 0;
default {
state_entry() {
params = llGetLinkPrimitiveParams(link, [PRIM_POSITION]);
pos = llList2Vector(params, 0);
}
touch_start(integer total_number) {
if (k = !k) llSetTimerEvent(0.02+llFrand(0.1));
else llSetTimerEvent(0.0);
}
timer() {
ll