Game Development Reference
In-Depth Information
-- Make sure the enemy is pathable.
if (#path ~= 0) then
closestEnemy = agent;
distanceToEnemy = distanceToAgent;
end
end
end
end
return { confidence = 1, evaluation = closestEnemy };
end
Search WWH ::




Custom Search