How to Play Sound for Triggering Player only?

themare

New Member
Reaction score
1
I need a trigger that plays a Sound for a player when he enters a region
What trigger do i use to make it only play for that player and no one else?
Please put WC3 GUI Tag
 

Komaqtion

You can change this now in User CP.
Reaction score
469
For this you'll need to use Local Player, and it'll look like this:
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit enters Your_Region <gen>
    • Conditions
    • Actions
      • Custom script: if GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit()) then
      • Sound - Play (Your_Sound)
      • Custom script: endif


I am though, unsure if this will cause desyncs :S
Anyone can confirm ??? :eek:
 

themare

New Member
Reaction score
1
oh yea i fogot to tell you dat i only have a ROC editor, so i cannot make custom scripts
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Then I don't believe it's possible, unless you can do JASS (Don't know if you have that on RoC :S)
 

themare

New Member
Reaction score
1
Theres something about 3d Sound?
What is dat? I tried sticking it on a unit that stands outside the region and is supposedly the one that is saying the sound, but no sound works when i do dat

If i can make it so that it makes the unit say the sound and only ppl nearby the person will hear it will be good as well
 

Romek

Super Moderator
Reaction score
964
You don't have TFT.
That really, REALLY limits what you can do with the editor.

Anyway, I suggest you make a copy of your trigger, disable one of them.
Select the copy, go to: Edit -> Convert to Custom Text.

Then add the custom scripts in post #2.

The backup is just incase something goes wrong with your trigger.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top