I wanna to trigger the animation when “StunType” equals “1” or “2”, is there any to config it in the animator?
1 Like
Not sure if you can do “OR” but you could certainly do “greater than 0 AND less than 3”
1 Like
Can you just add StunType multiple times?
Would that be “And” instead of “OR”?
As far as I can tell there is no direct way to achieve an “or” between two conditions. It would actually be quite tricky how this would work out. That would be a mess like programming a PLC in STL
Due to lack of grouping “and” / “or” instruction were always final. So you had to setup the order correctly (essentially like pre or postfix notation).
Though a common workaround is to setup multiple transitions (which are essentially in an “or” relationship). Each transition can have its own conditions.
2 Likes
