How do I switch from one state to another?

Okay so at the moment i’m creating something that has two modes (let’s call them red and blue). If you’re in the red state, then you will take damage from the blue enemies and obstacles but not from other red objects, and if you’re in the blue state, you’ll be damaged from the red enemies and obstacles but not from other blue objects. The problem i’m having is actually implementing these into blueprints. I’ve been trying branches and booleans but i’ve had no luck. Any ideas on how to actually do this?
Thanks

1 Like

Create an enumerator and Switch:

216157-enum.png

Every actor that can be either Blue or Red should have this property, query the actor, switch and define behaviour for each case.

1 Like

If it’s working as intended, please consider flagging this issue as resolved.

1 Like

Luckily I managed to get it to work on my own but thanks for replying anyway!

1 Like