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

Problem

Status
Not open for further replies.
Level 4
Joined
May 1, 2013
Messages
68
I am making a trigger, that should do this:

When u enter a region from one way it plays a sound, but when u come from the other way the sound is not played(There should possible be another sound from the other way).

So the problem is that the sound is played from both ways, which it should not.

So if anyone can help, plz do since its very annoying.
 
Level 4
Joined
May 1, 2013
Messages
68
Ok here it is.

PS. What is an ITE?
 

Attachments

  • Sound.jpg
    Sound.jpg
    9.7 KB · Views: 62
Level 4
Joined
May 1, 2013
Messages
68

Thx dude for the tutorial and the explanation. I would have done it like that, but i didn't know how, since i never used it before.

Okay, here ya go!

Steps to take this further: Make it MPI/MUI, maybe make the regions into 3 arrays for PlaySound, NoSound, and Resetsound.

To Test: Run across the grass line in between the rocks.

Wow finally someone with a solution that works. You have my deepest gratitude Zeatherann and for that i will thank you in my map when it's done.
 
Level 4
Joined
May 1, 2013
Messages
68
Ok so now i have used the system made by Zeatherann, but does anyone know how to make the sound play only for the owner of the entering unit.
It should look like this:
Play (my sound) for owner of entering unit.

  • PlaySound
    • Events
      • Unit - A unit enters PlaySound <gen>
    • Conditions
      • PlaySound Equal to True
    • Actions
      • Sound - Play Gua_youmayenter <gen>
 
Level 4
Joined
May 1, 2013
Messages
68
u can try this. not sure if it will desync. cant test it atm.
  • Actions
    • Set tempPlayer = (Owner of (Triggering unit))
    • Custom script: if udg_tempPlayer == GetLocalPlayer() then
    • -------- place actions in here. --------
    • Custom script: endif

Ok tried it, but it didnt work, but thx for the effort.
 
you need what Section2129 did, but in the comment area put your action to play the sound.

Helps for me to test sound with speakers on, ok here is the new Trigger for you.
  • PlaySound
    • Events
      • Unit - A unit enters PlaySound <gen>
    • Conditions
      • PlaySound Equal to True
    • Actions
      • Set EnteringUnit = (Entering unit)
      • Custom script: if GetOwningPlayer(udg_EnteringUnit)==GetLocalPlayer()then
      • Sound - Play MySound <gen>
      • Custom script: endif
      • Set EnteringUnit = No unit
 
Level 4
Joined
May 1, 2013
Messages
68
you need what Section2129 did, but in the comment area put your action to play the sound.

Helps for me to test sound with speakers on, ok here is the new Trigger for you.
  • PlaySound
    • Events
      • Unit - A unit enters PlaySound <gen>
    • Conditions
      • PlaySound Equal to True
    • Actions
      • Set EnteringUnit = (Entering unit)
      • Custom script: if GetOwningPlayer(udg_EnteringUnit)==GetLocalPlayer()then
      • Sound - Play MySound <gen>
      • Custom script: endif
      • Set EnteringUnit = No unit

And this only plays for the owner the entering unit?
 
its the exact same trigger i gave u lol.
It is inefficient tho. he sets a unit and doesnt use it. also dont use entering unit use triggering unit. and here try this.
  • Actions
    • Set tempInt = (Player number of (Owner of (Triggering unit)))
    • Custom script: if Player( udg_tempInt) == GetLocalPlayer() then
    • -------- place actions in here. --------
    • -------- play sound here. --------
    • Custom script: endif
if it doesnt work post what u tried
 
Status
Not open for further replies.
Top