As I'm a very noob when it comes to LSL, I looked at all old-school drinks in my inventory to edit their scripts, but their scripts are all not modifyable or use library animations.
That prim is attached to the body, it should play sound UUIDs and trigger a non-looped animation before a specific sound will be played, or.. together with that sound.
My basic idea would be like...
default
{
state_entry()
{
llPlaySound(" --SOUND UUID1-- ",1);
llSleep(15);
llPlaySound(" --SOUND UUID2-- ",1);
llSleep(30);
llPlaySound(" --SOUND UUID3-- ",1);
llSleep(20);
llStartAnimation( --Inventory Animation or Animation UUID if possible?-- );
//i don't need llStopAnimation when it's not a looped animation, correct?
llPlaySound(" --SOUND UUID4-- ",1);
llSleep(15);
llResetScript();
}
}
Could someone please help me with the LSL syntax? And how to use an inventory animation or animation-UUID? I completely fail here