• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

using local player to play sound for only two players

Status
Not open for further replies.
Level 11
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 11
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 11
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: 15
Status
Not open for further replies.
Top