Jump to content
Sign in to follow this  
FragMASTER

Cant get stuff to work

Recommended Posts

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

<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? rock.gif

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×