Hi guys!! here's the code I've got:
Code:
 
////////////////////////////////////////////////////////
// speedometer--->>>>
phent_getvelocity(me,speed,nullvector);
//////////////////////////////////////////////////////////
//SOUNDS---->


speed_avrg = abs((speed.x + speed.y + speed.z)/3);

var jet_s;
jet_s = ent_playloop(my,jet_sound,70);
var engine_s;
engine_s = ent_playloop(my,engine_noise_sound,90);
snd_tune(jet_s,0,speed_avrg,0);



It should pitch the sound depending on the players movement, but for some reason it doesnt work! But when I replace
speed_avrg = abs((speed.x + speed.y + speed.z)/3);
with a fixed value it works fine, but it doesnt do the job its soposed to
Please help!

Last edited by Mare; 02/25/08 13:56.