Didn't know how name the topic properly.
...
Hi. I'd love to know if there is a possibility to create string with part, which will be a random number.
I wanna to play sound by random.
Sounds names are like hit1.wav, hit2.wav, hit3.wav etc...
I wanna to create string named
PHP Code:
"sound/hitsounds/hit%d.wav"
where
PHP Code:
%d = random_num( 1 , 8 )
How do i do such a variable string?
I wanna make one emitsound command, instead of making switch with 8 cases.
Is this possbile? I guess yes. But I don't know this language that much to create strings properly.