L
Lensman
Guest
Ok I have another question for the experts 
Let's say I am making a Team Hero map. Like a Hero Arena or something similar.
Now here is what i want to get done.
Each time my Hero kills an enemy hero I want him to taunt.
Ok my Paladin kills a Lich belonging to a player on Team 2.
I want the trigger to pick a .wav file randomly from an array of sounds I have made. And then play it. For instance Play HeroPaladinPissed1.wav ("It's hamma time." he says). No problems so far.
What i am having a problem with is this:
I only want players with the Hero on the screen or near enough to it to hear the audio taunt. Like for instance when you can only hear units dying or fighting if they are on the screen or you are close by. But if you are fighting the enemy across the map and are messing around in your base you dont hear any of the combat audio or anything. I want the same thing for the taunts.
I guess I need to play a sound at the point of the Killing Unit that fades out at a certain distance. And i'm not quite certain how to do that. it seems when Itell them to play a sound everyone can hear it. Eventually i am going to import things from other media Like from SpaceBalls the movie "Keep Firing A**holes" when you kill an enemy hero or "I'm Surrounded by A**holes" when your hero dies. Randomly chosen wether its a Kill taunt or a death taunt and randomly chosen which player gets to taunt. Anyhow i am straying from the problem forgive me
Again i need to play a sound at the postiton of UnitX that only can be heard within a certain distance and gets lower in volume before fading away after a certain distance much like how combat/spells/deatsh sounds are played by default now.
Wheew ok i'm done
Thanks in Advance!
Let's say I am making a Team Hero map. Like a Hero Arena or something similar.
Now here is what i want to get done.
Each time my Hero kills an enemy hero I want him to taunt.
Ok my Paladin kills a Lich belonging to a player on Team 2.
I want the trigger to pick a .wav file randomly from an array of sounds I have made. And then play it. For instance Play HeroPaladinPissed1.wav ("It's hamma time." he says). No problems so far.
What i am having a problem with is this:
I only want players with the Hero on the screen or near enough to it to hear the audio taunt. Like for instance when you can only hear units dying or fighting if they are on the screen or you are close by. But if you are fighting the enemy across the map and are messing around in your base you dont hear any of the combat audio or anything. I want the same thing for the taunts.
I guess I need to play a sound at the point of the Killing Unit that fades out at a certain distance. And i'm not quite certain how to do that. it seems when Itell them to play a sound everyone can hear it. Eventually i am going to import things from other media Like from SpaceBalls the movie "Keep Firing A**holes" when you kill an enemy hero or "I'm Surrounded by A**holes" when your hero dies. Randomly chosen wether its a Kill taunt or a death taunt and randomly chosen which player gets to taunt. Anyhow i am straying from the problem forgive me
Again i need to play a sound at the postiton of UnitX that only can be heard within a certain distance and gets lower in volume before fading away after a certain distance much like how combat/spells/deatsh sounds are played by default now.
Wheew ok i'm done
Thanks in Advance!


