October 2016
Intermediate to advanced
452 pages
9h 47m
English
We can use a Behavior Tree to construct an NPC with melee attack behavior. The Melee Attacker will have the following behavior:
SearchRadius. We will achieve this using a Service. Chalk the opponent we are attacking into the Melee Attacker's Behavior Tree Blackboard.AttackRadius units of the opponent, damage the opponent we are attacking every AttackCooldown seconds.This is just one way to attack an opponent using a BehaviorTree. You will find you can also attack inside an attack animation for the Melee ...
Read now
Unlock full access