Hello guys
I made this ia code and i put it into my campaign but when i start the mission the ia doesn't start but on a normal map he works... does someone can help me?

globals
player user = Player(1)
endglobals
function main takes nothing returns nothing
call CampaignAI ('otrb' , null)
call SetReplacements (1,2,3)
call SetPeonsRepair (true )
call SetBuildUnitEx (0,0,0, 'opeo')
call SetBuildUnitEx (1,1,1, 'ogre')
call SetBuildUnitEx (1,1,1, 'oalt')
call SetBuildUnitEx (1,1,1, 'ostr')
call SetBuildUnitEx (1,1,1, 'ofor')
call SetBuildUnitEx (2,2,2, 'obar')
call SetBuildUnitEx (2,2,2, 'obea')
call SetBuildUnitEx (9,9,9, 'otrb')
call SetBuildUnitEx (8,8,8, 'owtw')
call SetBuildUnitEx (1,1,1, 'osld')
call CampaignDefenderEx (4,4,5, 'orai')
call CampaignDefenderEx (1,1,1, 'Ofar')
call InitAssaultGroup ()
call CampaignAttackerEx (2,2,3, 'orai')
call SuicideOnPlayerEx (M1,M2,M3,user)
endfunction
and this is the ia base in the mission
I made this ia code and i put it into my campaign but when i start the mission the ia doesn't start but on a normal map he works... does someone can help me?
globals
player user = Player(1)
endglobals
function main takes nothing returns nothing
call CampaignAI ('otrb' , null)
call SetReplacements (1,2,3)
call SetPeonsRepair (true )
call SetBuildUnitEx (0,0,0, 'opeo')
call SetBuildUnitEx (1,1,1, 'ogre')
call SetBuildUnitEx (1,1,1, 'oalt')
call SetBuildUnitEx (1,1,1, 'ostr')
call SetBuildUnitEx (1,1,1, 'ofor')
call SetBuildUnitEx (2,2,2, 'obar')
call SetBuildUnitEx (2,2,2, 'obea')
call SetBuildUnitEx (9,9,9, 'otrb')
call SetBuildUnitEx (8,8,8, 'owtw')
call SetBuildUnitEx (1,1,1, 'osld')
call CampaignDefenderEx (4,4,5, 'orai')
call CampaignDefenderEx (1,1,1, 'Ofar')
call InitAssaultGroup ()
call CampaignAttackerEx (2,2,3, 'orai')
call SuicideOnPlayerEx (M1,M2,M3,user)
endfunction
and this is the ia base in the mission
Last edited: