I dled some gun effects to apply so whenver my marine shoots the gun wav plays but i havent been able to pull it off and so far ive given up lol. can anyone help? (this is done in the game area 51 btw)
You can't detect when a unit fires. You can try to use 1 hit KO enemies and a virtual HP system, but this becomes complicated.
u could time the shots fired from the marine and match it with the sound
and to make sure that the marine is shooting, just detect if the enemy around its shooting range is getting damaged
if the enemy isnt getting damaged, stop the shooting sound
o-0, how can you detect a damaged enemy without an advanced trigger system of virtual HP?
The easiest way to do this is what DT_Battlekruser said, 1-hit KO. Then the trigger has the condition of '...kills exactly 1 unit...' and Actions of 'set kills of player to 0...' and 'play sound.wav'.
'Detect if they get damaged' Works well in theory, but there's really no way to do this for EVERY unit effectively. You could detect every single unit numbers hitpoints in it with EUD conditions, but then you would need to detect units hitpoints for EVERY hitpoint combination, and detect if the death count for that specific unit is different, change death count and make noise. However, this only works effectively with 1 enemy, as with 100 enemies you would need 100 different death counts, need to know exact unit number of all of them, and then if they have 100 hitpoints it would waste 10000 triggers (100 units x 100 hitpoints available). This is very buggy though on top if it, so unless you want a buggy map with more triggers then it needs, just do what DT_Battlekruser said.
well, if u heal all enemy units constantly around the marine and make a counter for everytime some unit gets hit near the marine, wont it be easier? =/
the counter would decide when to stop the sound, if u get the counter, sound stops
am i missing the point?
THANK YOU ALL NOW LET ME GO APPLY UR WISDOM TO MY MAPS THX FOR THE HELP GUYS
