FragMASTER 0 Posted November 30, 2003 Can anyone tell me why this doesnt work? Quote[/b] ]_plane = _this select 0 #loop _v = velocity _plane _a = getpos _plane _z = (_v select 2) _alt = (_a select 2) _impacttime = (_alt / _y) * -1 ?(_impacttime <= 3) && (_alt > 5) && (_impacttime > 0) : goto "playsound" goto "loop" #playsound playsound "pull" hint "PULL UP" ~1.16 goto "loop" And also i cant get custom sounds working, says sound not found. and i have already searched, it didnt help Share this post Link to post Share on other sites
korax 4 Posted November 30, 2003 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _impacttime = (_alt / _y) * -1 Where did the _y come from? shouldnt it be _z? For the sound problem, you have to put the sound into the description.ext, add something like this in there <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class CfgSounds {  sounds[] =    {     Pull    };   class Pull   {    name = "Pull";    sound[] = {"\sounds\pull.ogg", 1, 1.0};    titles[] = {  };  }; }; And be sure you put the right sound file in your mission/sound directory Share this post Link to post Share on other sites