I just need to make it so I can stop people going through rifts when they are in combat.
Hey there @CodeBLASTED246! So this is very dependent on how your game works and what type of game it is. For many games, when an AI that’s hostile sees you an inCombat
boolean is ticked until they either lose you or are defeated.
Other games it’s like using a retrigger-able delay in which getting hit or attacking sets the inCombat
and the delay begins to tick down, if no action triggered it again, the boolean is changed to false.
If you’d like a more tailored response, let me know what you’re working on and I can give you a bit more specifics on how I’d handle it!