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

How to make a sound that only one player can hear?

Status
Not open for further replies.
Level 7
Joined
Jan 2, 2008
Messages
77
I don't know how to make a sound that only one player can hear at the time, do anybody know how to make it? :confused:

I hope this is possible.

OMG, i just get it how to make it, but i just change the Upkeep... but that's not right way, does anybody know how to real do it??

EDIT:
Thanks for help Super-Sheep and Howl, but i need a diffirend trigger, i forgot to tell something about the trigger:

The idea is play a sound when the Zombie comes close:
(The sound starts when your upkeep swithes)

  • Zombie Is close
    • Events
      • Unit - A unit comes within 600.00 of Villager 0020 <gen>
      • Unit - A unit comes within 600.00 of Villager 0021 <gen>
      • Unit - A unit comes within 600.00 of Villager 0022 <gen>
      • Unit - A unit comes within 600.00 of Villager 0023 <gen>
      • Unit - A unit comes within 600.00 of Villager 0028 <gen>
      • Unit - A unit comes within 600.00 of Villager 0029 <gen>
      • Unit - A unit comes within 600.00 of Villager 0030 <gen>
      • Unit - A unit comes within 600.00 of Villager 0031 <gen>
      • Unit - A unit comes within 600.00 of Villager 0032 <gen>
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Zombie
          • (Unit-type of (Triggering unit)) Equal to Big Zombie
    • Actions
      • Player - Set (Owner of (Triggering unit)) Food used to 100
      • Wait 0.01 seconds
      • Player - Set (Owner of (Triggering unit)) Food used to Time[0]
Triggering Units (In actions) must be the Villagers no the zombie, but how to do it, like this:


  • Zombie Is close
    • Events
      • Unit - A unit comes within 600.00 of Villager 0020 <gen>
      • Unit - A unit comes within 600.00 of Villager 0021 <gen>
      • Unit - A unit comes within 600.00 of Villager 0022 <gen>
      • Unit - A unit comes within 600.00 of Villager 0023 <gen>
      • Unit - A unit comes within 600.00 of Villager 0028 <gen>
      • Unit - A unit comes within 600.00 of Villager 0029 <gen>
      • Unit - A unit comes within 600.00 of Villager 0030 <gen>
      • Unit - A unit comes within 600.00 of Villager 0031 <gen>
      • Unit - A unit comes within 600.00 of Villager 0032 <gen>
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (coming unit)) Equal to Zombie
          • (Unit-type of (coming unit)) Equal to Big Zombie
    • Actions
      • Player - Set (Owner of (The Villager)) Food used to 100
      • Wait 0.01 seconds
      • Player - Set (Owner of (The Villager)) Food used to Time[0]
 
Last edited:
Level 20
Joined
Oct 21, 2006
Messages
3,230
  • Play sound for a player
    • Events
      • Player - Player 1 (Red) types a chat message containing -sound as An exact match
    • Conditions
    • Actions
      • Set TriggeringPlayer = (Triggering player)
      • Custom script: if GetLocalPlayer() == udg_TriggeringPlayer then
      • Sound - Play Sound
      • Custom script: endif
 
Status
Not open for further replies.
Top