• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[General] Adding Custom Sound to Ability

Status
Not open for further replies.
Hello guys, i'm using custom sounds and the problem is that i want the sounds to be heard if they are only in the player's camera range, else you stop hearing them ( just like the default abilities' sounds).
I uploaded the sound that i want to use and i tried this trigger. The problem is that the sound is heard throughout the entire map not in the area where it's being cast.

Cast Sound
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Crap
Actions
Set TempPointSS = (Position of (Target unit of ability being cast))
Sound - Play Crap_Sound <gen> at 100.00% volume, located at TempPointSS with Z offset 0.00
Custom script: call RemoveLocation( udg_TempPointSS )
 
As Alok has hinted, you will need to configure the sound so that it has appropriate 3D properties.

I also think one needs to locally play the sound only if the point is visible to the player. Otherwise people will be able to hear it through the fog of war, which can then indirectly reveal the location of units. This also applies for special effects, which must only use a model (still need to be created for all players) when visible by the player.
 
Status
Not open for further replies.
Back
Top