/*%FSM*/ /*%FSM*/ /* item0[] = {"Destroy_Chopper",0,4346,621.253113,530.210815,711.253113,580.210815,0.000000,"Destroy" \n "Chopper" \n "Side Mission"}; item1[] = {"Here_we_go",8,218,622.421570,600.105347,712.421570,650.105347,0.000000,"Here we go"}; item2[] = {"Chopper_destroye",4,218,620.305725,748.854797,710.305725,798.854797,0.000000,"Chopper" \n "destroyed"}; item3[] = {"Mission_success",1,250,621.154541,831.196167,711.154541,881.196167,0.000000,"Mission" \n "success!"}; item4[] = {"Create_Side_Miss",2,250,620.564209,675.335449,710.564209,725.335449,0.000000,"Create" \n "Side Mission"}; link0[] = {0,1}; link1[] = {1,4}; link2[] = {2,3}; link3[] = {4,2}; globals[] = {0.000000,0,0,0,0,640,480,1,11,6316128,1,148.338150,1171.237793,1169.633911,389.312531,1205,920,1}; window[] = {2,-1,-1,-1,-1,838,78,1518,78,3,1223}; *//*%FSM*/ class FSM { fsmName = "Destroy Chopper"; class States { /*%FSM*/ class Destroy_Chopper { name = "Destroy_Chopper"; init = /*%FSM*/"_pos = _this; //REQUIRED! This is the position you've been given!"/*%FSM*/; precondition = /*%FSM*/""/*%FSM*/; class Links { /*%FSM*/ class Here_we_go { priority = 0.000000; to="Create_Side_Miss"; precondition = /*%FSM*/""/*%FSM*/; condition=/*%FSM*/""/*%FSM*/; action=/*%FSM*/""/*%FSM*/; }; /*%FSM*/ }; }; /*%FSM*/ /*%FSM*/ class Mission_success { name = "Mission_success"; init = /*%FSM*/"_result = true;"/*%FSM*/; precondition = /*%FSM*/""/*%FSM*/; class Links { }; }; /*%FSM*/ /*%FSM*/ class Create_Side_Miss { name = "Create_Side_Miss"; init = /*%FSM*/"_randomDir = (random 360);" \n "_hangar = ""Land_TentHangar_V1_F"" createVehicle _pos;" \n "_hangar setPos [(getPos _hangar select 0), (getPos _hangar select 1), ((getPos _hangar select 2) - 1)];" \n "_chopper = ""O_Heli_Light_02_F"" createVehicle _pos;" \n "{ _x setDir _randomDir; } forEach [_chopper, _hangar];" \n "_chopper setVehicleLock ""LOCKED"";" \n "" \n "_sideUnits = [EAST, 5, _pos, 300] call AW_fnc_spawnEnemy;" \n "[_sideUnits, [[""defend"", _pos, 150], [""patrol"", _pos, 300]]] call AW_fnc_setBehaviour;" \n ""/*%FSM*/; precondition = /*%FSM*/""/*%FSM*/; class Links { /*%FSM*/ class Chopper_destroye { priority = 0.000000; to="Mission_success"; precondition = /*%FSM*/""/*%FSM*/; condition=/*%FSM*/"!alive _chopper"/*%FSM*/; action=/*%FSM*/""/*%FSM*/; }; /*%FSM*/ }; }; /*%FSM*/ }; initState="Destroy_Chopper"; finalStates[] = { "Mission_success", }; }; /*%FSM*/