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

function init() {
	my_squads[0].select();
	order_move(2741, 37042);
	home <- false;
}

function run_ai() {
	if (!home && my_squads[0].get_distance_to_point(2741, 37042) < 100) {
		wakeup_mission_script(1);
		home = true;
		my_squads[0].select();
		order_move(0, 40000);
	}
}

main_loop();