PDA

View Full Version : Need help making a 'gunshot wav trigger'


zogzog
12-30-2006, 12:22 PM
Ok I'm trying to do a trigger that plays a gunshot wav each time something is killed like the ones in some of biotech's maps.

Anyways, I have the same type of trigger as the footsteps trigger, as in, it cycles to ground zero each time, but the wav is just repeating continiously.

Here's my trigger:
Condition: Player 8 has suffered exactly 1 deaths of any unit
Action: Modify Death count for player 8 to 0 for any unit
Action: Play wav
Action: preserve trigger

Shouldnt the wav just play once and stop since death count was reset back to zero? Why is it playing over and over after the first kill?

SuiCidAl-KiSmEt
12-30-2006, 1:08 PM
Player 8 has suffered exactly 1 deaths of any unit
It seems your trieng to set up a score system to activate the sound. First off, that trigger (the Death trigger) has nothing to do with scoring, its like the other Condition triggers, it will just set off the Action when something has happened but it doesn't keep score of anything at all.

Modify Death count for player 8 to 0 for any unit
So your trieng to modify a score that doesn't really exist.

Try something else for the Condition, like the 'Score' trigger...

zeratulthedark
12-30-2006, 1:19 PM
I think you should set a wait trigger (like 1000 miliseconds ) just before preserve trigger

zogzog
12-30-2006, 1:42 PM
Thanks for the replies

Ok, when I change the conditions to go by players 1 kill score instead of player 8's death count it doesnt play the wav at all.

I'm new so I'm consfused about things like kills vs kill score ect. I still dont see why death counts cant act like a score since its a thing that can be reset to zero.

Can someone tell me exactly how i set the trigger up?

edit: I got it working now. I was using: 'Player kill score is exactly 1' for the condition which made it not work since kills aren't worth exactly 1 point. I changed it to 'at least' and it works now.