Created
March 3, 2018 12:59
-
-
Save Parasite42/f51b0972f99f3a7ac573ed740a18c6dd to your computer and use it in GitHub Desktop.
mission ai for super soviet assault 3012
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ============================================================================ | |
| // | | |
| // Use this script to call any functions or further scripts | | |
| // in order to create and spawn AI units into your mission. | | |
| // | | |
| // Keep in mind that only the AI Controller (server or HC) should run | | |
| // these scripts. | | |
| // | | |
| // A few DAC zones and camps have already been configured below. | | |
| // | | |
| // ============================================================================ | |
| [{(mission_AI_controller)}, { | |
| if ("spawn_ai" in usedPlugins) then { [{(!isNil "BRM_FMK_SpawnAI_fnc_infantry")}, { | |
| }, []] call CBA_fnc_waitUntilAndExecute }; | |
| if ("dac_plugin" in usedPlugins) then { [{(!isNil "BRM_FMK_DAC_fnc_new") && (time > 5)}, { | |
| [trg1, "Create an activated normal default enemy zone named area 1, on network 1, with 2 squads of infantry, 2 fire-teams of vehicles and 1 group of armor."] call BRM_FMK_DAC_fnc_new; | |
| [trg2, "Create an activated normal default enemy zone named area 2, on network 3, with 2 squads of infantry and 2 fire-teams of vehicles"] call BRM_FMK_DAC_fnc_new; | |
| [trg3, "Create an activated normal default enemy zone named area 3, on network 2, with 2 squads of infantry and 2 fire-teams of vehicles"] call BRM_FMK_DAC_fnc_new; | |
| [trg4, "Create 1 normal default enemy camp named camp1 on network 1, with 10 respawns of infantry supporting trg1."] call BRM_FMK_DAC_fnc_new; | |
| [trg5, "Create 1 normal default enemy camp named camp2 on network 2, with 10 respawns of infantry supporting trg3."] call BRM_FMK_DAC_fnc_new; | |
| /* ================================================ | |
| EXAMPLES OF AI ZONES: | |
| Easy enemies: | |
| [trg1, "Create an activated easy default enemy zone named anything on network random, with 1 squad of infantry."] call BRM_FMK_DAC_fnc_new; | |
| Difficult enemies with combined arms: | |
| [trg2, "Create an activated hard default enemy zone named anything on network random, with 2 squads of infantry, 2 fire-teams of vehicles and 1 group of armor."] call BRM_FMK_DAC_fnc_new; | |
| Named zone assigned to a network: | |
| [trg3, "Create an activated normal default friendly zone named NamedZone1 on network 2, with 2 squads of vehicles."] call BRM_FMK_DAC_fnc_new; | |
| Making camps: | |
| [trg1, "Create 1 normal default friendly camp named anything on a random network, with 25 respawns of infantry supporting NamedZone1."] call BRM_FMK_DAC_fnc_new; | |
| Camps supporting a network: | |
| [c1, "Create 1 normal default friendly camp named anything on network 2, with 25 respawns of infantry."] call BRM_FMK_DAC_fnc_new; | |
| Camps supporting both with extra zones: | |
| [c1, "Create 3 normal default friendly camps named anything on network 2, with 25 respawns of infantry supporting NamedZone1, NamedZone2 and NamedZone3."] call BRM_FMK_DAC_fnc_new; | |
| =================================================== */ | |
| }, []] call CBA_fnc_waitUntilAndExecute }; | |
| }, []] call CBA_fnc_waitUntilAndExecute; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment