Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string sound1 = "";
- string sound2 = "";
- default
- {
- state_entry()
- {
- llPreloadSound(sound1);
- llPreloadSound(sound2);
- llSetSoundQueueing(TRUE);
- llSetTimerEvent(.3);
- }
- timer()
- {
- string anim = llGetAnimation(llGetOwner());
- if ((anim == "Walking") || (anim == "Running") || (anim == "Turning Left") || (anim == "Turning Right") || (anim == "CrouchWalking"))
- {
- llPlaySound(sound1,1.0);
- llPlaySound(sound2,1.0);
- }
- else
- {
- llStopSound();
- }
- }
- on_rez(integer n)
- {
- llResetScript();
- }
- }
Add Comment
Please, Sign In to add comment