Warcraft II Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Back by popular demand, the SMF Arcade!!!
PLAY NOW!!!!!!!!!!!!!!!!!!!!!!!!
Home
Help
Search
Login
Register
Welcome to the forums!
We're glad to have you here! :) You can
register your account here
, then feel free to introduce yourself in the
Server.Warcraft2.online
board & let us know who you are on the server.
Warcraft II Forum
»
Warcraft II
»
Mods & Development
»
Danny
« previous
next »
Print
Pages: [
1
]
Author
Topic: Danny (Read 740 times)
Buttercraft
Grunt
Posts: 81
Danny
«
on:
August 27, 2026, 04:04:54 PM »
How do you change one sound to mutliple random sounds?
share your secrets
Logged
Mistral
Administrator
Axe Thrower
Posts: 475
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
Logged
Print
Pages: [
1
]
« previous
next »
Warcraft II Forum
»
Warcraft II
»
Mods & Development
»
Danny