New unit on an edited campaign map does not show up
Posted: Mon Jan 10, 2022 4:20 pm
I've been working with the existing AO campaign in the editor a bit and wanted to play a slightly edited version of the AO campaign - with changed factions, heroes and so on. After some work I managed to do a lot of things I wanted - custom core, custom heroes and a few other small details, but as I moved from Seville to Antequera I am having trouble doing one more thing.
I want to add a CR.32 fighter for the Hungarian faction on hex 3,11. While I was able to edit and add core units on the Seville map, doing the same on the Antequera map does not work - the unit simply does not spawn at all, while in Seville I could make all the changes I want to the core units placed on the map. The only way around it I found is to separately spawn it using the lua script (independent of the map file), but when doing so it remains Italian, not Hungarian:
As such my question is:
1. Is it possible to specify the faction the unit will spawn for? Adding faction=x under player = 0 does nothing.
2. If not, is there some lua script I am missing that "activates" the units added to the map in the editor?
3. If also not, possibly I am missing a trigger in the editor?
I want to add a CR.32 fighter for the Hungarian faction on hex 3,11. While I was able to edit and add core units on the Seville map, doing the same on the Antequera map does not work - the unit simply does not spawn at all, while in Seville I could make all the changes I want to the core units placed on the map. The only way around it I found is to separately spawn it using the lua script (independent of the map file), but when doing so it remains Italian, not Hungarian:
Code: Select all
function OnNewRound(action)
if world.round == 1 then
player = 0
zone = { {3,11}, {3,12}}
units = { {"CR32", "", 0, 0} }
SpawnWaveAir(player, zone, units)
if not world.round == 1 then return end
end
end1. Is it possible to specify the faction the unit will spawn for? Adding faction=x under player = 0 does nothing.
2. If not, is there some lua script I am missing that "activates" the units added to the map in the editor?
3. If also not, possibly I am missing a trigger in the editor?