Quote:
Originally Posted by jjturbo9
I think I'm gonna choose another sound though, now that I heard it come together. And is there a way to make it louder? Probably not necessary but just wondering, might be nice as a final touch.
|
jjSample does take an optional volume argument but the default volume is already the maximum so no, sounds can't be made any louder than this.
Quote:
Originally Posted by jjturbo9
I didn't know how to write 'and' so I just added two ifs xD But it works now so I'm not complaining.
|
It was worth taking a guess: " and" works. In fact the " !" can also be replaced with " not" so the whole expression can be stated as
Code:
jjTriggers[21] and not jjTriggers[24]
In practice most AngelScript users state these symbolically with ! for not, && for and, and || for or (and sometimes ^^ for xor).
Code:
jjTriggers[21] && !jjTriggers[24]
Both ways are exactly equivalent.
__________________
I am an official JJ2+ programmer and this has been an official JJ2+ statement.
|