1.) I often see them moving away for a different job
2.) They have the tendancy to zig zag across big maps because of this
Please check if you find it usefull.
function EngineerTactic:GoToNextPost() -- find a strat flag that can be captured for strat_ai in resource_manager:GetStrategicPointAIs() do --we're the owner, but no post if strat_ai:IsLocked() and not strat_ai:HasListeningPost() and not strat_ai:IsTagged() and not strat_ai:IsStrategicObjective() then --find first flag self.tagged_flag = strat_ai break end end --NOT move close to the next one in anticipation --if self.tagged_flag ~= nil then -- aitrace("moving to next strategic point") -- self.squad_ai:DoMove( self.tagged_flag:GetEntity():GetPosition() ) --don't let another engineer go to this flag -- self.tagged_flag:TagFlagForEngineer( true ) --else --go to nearest base if nowhere to go to local base = cpu_manager:FindClosestBase( self.squad_ai:GetPosition() ) if base ~= nil then self.squad_ai:DoMove( base:GetPosition() ) end --end end