I've attached the unit's AI configuration (for the Axis player, #1). This is the LUA code from the script
Code: Select all
turn12Message = NSLOCTEXT("scenario_KasserinePass","","The Eighth Army's lead elements have finally reached Medenine, only a few kilometres from the Mareth Line. The Germans have no other option than to call off this attack. Pursue the enemy and recapture Thelepte, Kasserine and Sbeitla in case they fell into enemy hands.")
function OnTurn12()
for id,unit in pairs(world.units) do
if unit.owner_id == 0 then
local orders = unit.orders
local newOrders = {};
local i = 2
while(orders[i]) do
newOrders.append(orders[i])
end
unit.orders = newOrders
end
end
TutorialMessage(turn12Message)
end
Is there something obvious I'm missing? Is there a better way to change unit orders that isn't documented in the API?