• 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!

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
 
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
 
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
 
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.
Back
Top