im looking for help with a script,,, i know how to make a basic loop sound script but what i want is a script that will play a sound when your AV walks. i hope someone can point me in the right direction.
i came up with this but i cant tell if it works or not my sound is kinda quiet so if its working i cant hear it,,, can someone see if there is a bug in it or test it on one of your own sounds that is loud?
key owner;
integer status;
initialize()
{
llLoopSound(llGetInventoryName(INVENTORY_SOUND, 0), 1);
llSetTimerEvent(.5);
owner = llGetOwner();
status = 0;
}
default
{
state_entry()
{
if(llGetOwner() != owner)
{
initialize();
}
}
on_rez(integer total_number)
{
if(llGetOwner() != owner)
{
initialize();
}
}
timer()
{
integer temp = llGetAgentInfo(owner) & AGENT_WALKING;
if (temp != status)
{
llStopSound();
status = temp;
}
}
}

//stopped walking
