function Hum17SpeedCheck(%this, %obj)
{
if(!isObject(%obj))
return;
%vehicle = %obj;
%slot = 0;
%speed = vectorLen(%obj.getVelocity());
if(%speed <= 30 && %speed > 10)
%vehicle.playAudio(%slot, Hum17throttle1Sound);
else if(%speed <=10 && %speed > 0)
%vehicle.playAudio(%slot, Hum17idleSound);
schedule(500,0,"Hum17SpeedCheck",%this,%obj);
}
should work