Game Development Reference
In-Depth Information
The pursue behavior
As pursuit is the action our agents can perform if they have an enemy, no condition is ne-
cessary:
SoldierLogic.lua :
function SoldierLogic_BehaviorTree(userData)
...
-- pursue action
node = node:GetParent();
node = node:GetParent();
child = CreateAction("pursue", PursueAction(userData));
node:AddChild(child);
node = child;
return tree;
end
Search WWH ::




Custom Search