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

using local player to play sound for only two players

Status
Not open for further replies.
Level 12
Joined
Jul 17, 2013
Messages
544
Hi i recently found out about local player, i want the sound to be played only for red and blue
upload_2020-9-3_20-59-34.png

i made it like this, i also heard local player can cause desync but is it fine? wont my trigger cause desync?
 
Level 12
Joined
Jul 17, 2013
Messages
544
I believe you can use this:
  • Set SoundVariable = hurryup <gen>
  • Custom script: call StartSoundForPlayerBJ(Player(0),udg_SoundVariable)
  • Custom script: call StartSoundForPlayerBJ(Player(1),udg_SoundVariable)

what about setdaynight model? i mean this
upload_2020-9-3_21-14-24.png

then after some time again local player and
upload_2020-9-3_21-15-38.png

can it be used inside local player to create the night system for only two players?
 
Level 12
Joined
Jul 17, 2013
Messages
544
Never messed with day/night stuff so I don't know. You could test it out.

And you would use exactly what I showed you instead of what you were doing. No local player needed.
I got such error any idea why? I made zapierdalaj= hurry up (my sound) but at other trigger
 

Attachments

  • unknown-58.png
    unknown-58.png
    62.7 KB · Views: 18
Status
Not open for further replies.
Top