How to force reevaluation during shooting action in Behavior Designer?

Beginner

New member
Hi everyone,

I’m using Behavior Designer Pro and trying to build an enemy behavior where:
  • The enemy starts by aiming and shooting at the player immediately.
  • There are two possible attack actions:
    • Shoot
    • Throw grenade
  • While shooting, I want the enemy to periodically reevaluate:
    Should it continue shooting or switch to throwing a grenade?
I understand that reevaluation normally happens in conditional nodes with ConditionalAbortType, but in this case, I want to trigger a reevaluation manually from an action node, or at least have the tree periodically reconsider its running action.

My Questions:​

  1. How do I force reevaluation of the current action after a few seconds or certain conditions?
  2. Can this be done without converting the shooting action into a conditional node?
  3. Is there a recommended pattern or best practice for this kind of mid-action reevaluation?
I’m still new to Behavior Designer and would appreciate any advice or code samples. Thank you in advance!
 
Back
Top