"Is animation playing" is not a triggered event, it's a "state" checked every tick.
Also the pseudo code @ramones gave is executed like this :
[code]User click on a WPawn
1 => If WPawn is playing "Unselected" animation
1 ..=> Set the animation to "Selected"
2 => Else (if WPawn is NOT playing "Unselected", so is playing "Selected" in this binary setup)
2 ..=> Set the animation to "Unselected"[/code]
Else will execute only if the previous event hasn't executed.
If 1 is checked and found to be true, 2 won't be executed at all.
If 1 is checked and found to be false, 1 won't be executed and so 2 is executed.
(That's inherent to how events work
On one click, there can only be one state and one state switch with this code.Kyatric2013-02-16 21:45:59