How do I make the AI choose another attack if it picks an attack already on Cooldown
I am having an issue with my AI's behaviours. When he gets to a mid range of the player, he will choose between 6 different behaviours at random as seen below. From left to right its: DodgeLeft, DodgeRight, DodgeForward (Forgot to fix that), StrafeRight, StrafeLeft, and LaunchAttack.
I want to use cooldowns on the 6 different behaviours so that I can make it that the AI doesn't spam certain behaviours too quickly or make him use other behaviours more frequently.
I've tried using the premade Cooldown Decorator but if a behaviour that is on cooldown gets chosen again, the character just freezes in place.
What I would like, is making it so that once a behaviour goes on cooldown, it will instead immediatly pick another midrange behaviour that is not on cooldown. Does anyone know how to achieve this?
This is my service node for randomizing the attacks.
Thank you. Feel free to ask for anymore clarification.
asked Mar 25 '19 at 07:26 AM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here