Hi Guys,
i currently trying to play some Audio Player one after one, but when it comes to playing those Things i get: “This invocation calls a function that has the ‘decides’ effect, which is not allowed by its context.”
I saved a bunch of Audio Player in to a Array like so:
@editable
var AudioClips : []audio_player_device = array{}
and i wanna play them like this:
playClips() : void=
NumberofClips : int = AudioClips.Length
var counter : int = 0
randomClipselector()
for(audio_player_devices : AudioClips):
AudioClips[counter].Play()
set counter += 1
This here is the Problem on the counter: AudioClips[counter].Play()
I tryed 0, 1, 2, 3 but get the same Error here.
I have to select a Audio Clip by his Index right?
What do i do wrong here?