local main_loop = loadfile("squirrelscripts/main_ai_loop.nut");

function init() {
	foreach(squad in my_squads)
		squad.select();

	local moon_pos = side_3_squads[0].get_pos();
	order_move(moon_pos[0], moon_pos[1]);
}

function run_ai() {
	//FIXME if all remaining squads are killed simultaneously the ai script will never be run at all
	if (my_squads.len() < 2)
		wakeup_mission_script(0);
}
	
main_loop();