• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Sound problem! (play sound for players in region)

Status
Not open for further replies.
Level 11
Joined
Nov 1, 2008
Messages
828
I can't seem to have the sound be played at a targited unit only, all i am wanting is when the "StarGate" is opened it plays a full mp3 sound at the point, i am not wanting it be heard by everyone just the people in the region... Any ideas to this problem?

Thanks
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
Try these actions:

  • Gate Sound
    • Events
    • Conditions
    • Actions
      • Set Temp_Point = (Position of (Your_Gate))
      • Sound - Play Your_Sound at 100.00% volume, located at (Temp_Point) with Z offset 0.00
      • Custom script: call RemoveLocation(udg_Temp_Point)
Let me know if it works!

- Mr_Bean
 
Level 11
Joined
Nov 1, 2008
Messages
828
It does not work :(.

Here is my triggers,
  • Planet03 Trade
    • Events
      • Unit - A unit enters Planet03 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Trading Alliance Homeworld
    • Actions
      • Set Temp_Point[1] = (Position of Stargate Portal 0035 <gen>)
      • Unit - Remove (Triggering unit) from the game
      • Sound - Play gate_roll <gen> at 100.00% volume, located at Temp_Point[1] with Z offset 0.00
      • Wait 3.50 seconds
      • Trigger - Turn on Planet03 Trade Teleportation <gen>
      • Trigger - Turn on Planet03 Trade Teleportation 2 <gen>
      • Sound - Play gate_open <gen> at 100.00% volume, located at Temp_Point[1] with Z offset 0.00
      • Sound - Play wormhole_loop <gen> at 100.00% volume, located at Temp_Point[1] with Z offset 0.00
      • Animation - Play Stargate Portal 0035 <gen>'s Morph animation
      • Animation - Play Stargate Portal 0034 <gen>'s Morph animation
      • Wait 2.00 seconds
      • Animation - Play Stargate Portal 0035 <gen>'s Stand Alternate animation
      • Animation - Play Stargate Portal 0034 <gen>'s Stand Alternate animation
      • Wait 30.00 seconds
      • Trigger - Turn off Planet03 Trade Teleportation <gen>
      • Trigger - Turn off Planet03 Trade Teleportation 2 <gen>
      • Sound - Play gate_close <gen> at 100.00% volume, located at Temp_Point[1] with Z offset 0.00
      • Sound - Stop wormhole_loop <gen> Immediately
      • Animation - Play Stargate Portal 0035 <gen>'s Morph Alternate animation
      • Animation - Play Stargate Portal 0034 <gen>'s Morph Alternate animation
      • Wait 1.00 seconds
      • Animation - Play Stargate Portal 0035 <gen>'s Stand animation
      • Animation - Play Stargate Portal 0034 <gen>'s Stand animation
 
Level 11
Joined
Jul 7, 2010
Messages
709
Try this..
  • Set AlphaReal = 0
  • Set LocalPlayer = Player 1 (Red) //modify this to whatever player you want to show it for
  • Custom script: if GetLocalPlayer() != udg_LocalPlayer then
  • Set AlphaReal = 100
  • Custom script: endif
  • Sound - Play gate_open <gen> at AlphaReal% volume, located at Temp_Point[1] with Z offset 0.00
 
Level 11
Joined
Nov 1, 2008
Messages
828
But this wouldn't have other players to hear it? All i want is that people hear it when camera is close to it or a unit which would probably be easier to config.
Edit: This map is pritty big, going to at least have 12 players with 50 planets with 50 stargates, so it'll be on going...
 
Status
Not open for further replies.
Top