Jump to content
Sign in to follow this  
b1sh0p

Stopping trigger activated sounds.

Recommended Posts

I'm making a mission and at one point I have several triggers that start the dog barking sound. At one point in the mission I want to stop all the dogs from barking. How do I do this?

Share this post


Link to post
Share on other sites

Try making the trigger conditions false. Fx condition: west present && !noMoreBarking

Then in a main trigger onAct: noMoreBarking = true;

Don't know if it will work though - good luck!

Share this post


Link to post
Share on other sites
Try making the trigger conditions false. Fx condition: west present && !noMoreBarking

Then in a main trigger onAct: noMoreBarking = true;

Don't know if it will work though - good luck!

Also remember this only works if the trigger is on repeatedly. Also, remember you have to make your variable false (noMoreBarking = false in an init field) at the beginning of the mission so the game knows it's a boolean, otherwise the '!noMoreBarking' condition doesn't work.

Share this post


Link to post
Share on other sites

I'm sure i did it this way

on

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">soundSource = createSoundSource ["LittleDog", position player, [], 0]

off

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">deleteVehicle soundSource

Share this post


Link to post
Share on other sites

Does anyone know where we can find a list of available sound sources?

Thanks.

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  

×