• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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,231
  • 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