play sounds on avatar movement.
Forgot to mention, you just change the UUID code if you want a different sound effect.
Quote:default
{
state_entry()
{
llSetTimerEvent(.3);
}
timer()
{
string anim = llGetAnimation(llGetOwner());
if ((anim == "Walking") || (anim == "Running") || (anim == "Turning Left") || (anim == "Turning Right") || (anim == "CrouchWalking"))
{
llLoopSound("a859eb3a-13d8-b378-bc58-440f0270eeb6",1);
}
else
{
llStopSound();
}
}
}
Forgot to mention, you just change the UUID code if you want a different sound effect.