Game Development Reference
In-Depth Information
We can start creating a behavior tree using a similarly wrapped function that instantiates a
behavior tree and creates the first selector node for the tree:
SoldierLogic.lua :
function SoldierLogic_BehaviorTree(userData)
local tree = BehaviorTree.new(userData);
local node;
local child;
node = CreateSelector();
tree:SetNode(node);
return tree;
end
Search WWH ::




Custom Search