Staredit Network

Staredit Network -> UMS Assistance -> [SOLVED] USIng sound effect
Report, edit, etc...Posted by destroyer1 on 2005-11-27 at 13:30:31
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)
Report, edit, etc...Posted by DT_Battlekruser on 2005-11-27 at 14:31:22
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.
Report, edit, etc...Posted by Do-0dan on 2005-11-27 at 14:35:48
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
Report, edit, etc...Posted by LethaL on 2005-11-27 at 14:44:52
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'.
Report, edit, etc...Posted by Kumano on 2005-11-27 at 15:08:17
'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.
Report, edit, etc...Posted by Do-0dan on 2005-11-27 at 15:12:20
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?
Report, edit, etc...Posted by destroyer1 on 2005-11-27 at 19:44:41
THANK YOU ALL NOW LET ME GO APPLY UR WISDOM TO MY MAPS THX FOR THE HELP GUYS biggrin.gif
Next Page (1)