Author Topic: Danny  (Read 740 times)

Offline Buttercraft

  • Grunt
  • ***
  • Posts: 81
    • View Profile
Danny
« on: August 27, 2026, 04:04:54 PM »
How do you change one sound to mutliple random sounds?

share your secrets  8)

Offline Mistral

  • Administrator
  • Axe Thrower
  • *****
  • Posts: 475
    • View Profile
Re: Danny
« Reply #1 on: August 28, 2026, 02:23:56 AM »
hey bro its easy
i teached him how to do it
there is open source code on my github for my campanigns
https://github.com/mistral-war2ru
you need functions sound_play_unit_speech and sound_play_unit_speech_soft
something like this
https://github.com/Mistral-war2ru/War2RedMistPrequel/blob/main/w2p.cpp#L8169
you just use any random function and change