Preconditions: inMeleeRange = true
Effects: targetIsDead = true
Context Preconditions: Have no weapon loaded and has a target in melee range.
Action Activation: Activates a melee attack.
Action Completes: When the target is dead, target is out of melee range or if the attack is complete.
Effects: weaponLoaded = true
Context Preconditions: Current weapon isn’t loaded and there exists another weapon with ammo.
Action Activation: Places a request on the blackboard to change weapons.
Action Completes: When the agent has a loaded weapon.
Effects: atTargetNode = true
Context Preconditions: Agent has a GoTo order.