I need lil help over here guys.
For Example.
I have an array from 5 elements, each of them i can set. Let them be sounds.
To choose random slots from this array to play sounds randomly, i should use line kinda like this.
Code: Select all
PlaySound(SomeSound[Rand(4)],slot_none,Loudness,True,Radius,1.0);
The question is - how to force code to check, does some slot of array filled with proper value (path to sound in my case) or it's value is "None". I mean if i did not filled all slots of array with some content (for example i filled [1], [2] and [3] slots - slots [0] and [4] are empty ) but i need to play randomly only sounds which are defined in an aray and skip empty slots?
Hope i described my question in details so you will understand what the hell i'm talking about.
Unreal. Alter your reality..forever...