- Joined
- Aug 5, 2011
- Messages
- 94
I have two different sounds for an ablity.
Example
Set Sound_For_Spell[0]= fire_beam_sound1<gen>
Set Sound_For_Spell[1]= fire_beam_sound2<gen>
Every time i use a certain spell i want to Play : fire_beam_sound1 for the first time and the second time casting the spell to listen to fire_beam_sound2.
I was trying to make a var to do the following :
Sound_var = (Sound_var+1)
And the condition was
IF (Sound_var x 1) equals to 0
Then
play fire_beam_sound1
Else
play fire_beam_sound2
But i know how i will create a var to save sounds and use them as real or integer so i can put them in the condition
Example
Set Sound_For_Spell[0]= fire_beam_sound1<gen>
Set Sound_For_Spell[1]= fire_beam_sound2<gen>
Every time i use a certain spell i want to Play : fire_beam_sound1 for the first time and the second time casting the spell to listen to fire_beam_sound2.
I was trying to make a var to do the following :
Sound_var = (Sound_var+1)
And the condition was
IF (Sound_var x 1) equals to 0
Then
play fire_beam_sound1
Else
play fire_beam_sound2
But i know how i will create a var to save sounds and use them as real or integer so i can put them in the condition