Updated Home (markdown)

spencershepard 2022-01-08 21:52:13 -08:00
parent 9d827aba9e
commit e9a4fd3517

@ -1,7 +1,29 @@
# Get started with RotorOps mission design
The easiest way to get started is to download our .miz mission templates. Open a template in the mission editor and you can see how everything works and start creating your mission right away.
The easiest way to get started is to download the .miz mission templates. Open a template in the mission editor and you can see how everything works and start creating your mission right away. Important bits are the triggers, trigger zones, and advanced waypoint actions (for AI troop drops).
## Conflict Setup Functions
Within the mission templates, you will find a trigger function with a DO SCRIPT similar to:
```
RotorOps.stagingZone('STAGING')
RotorOps.addZone('ALPHA', 101)
RotorOps.addZone('BRAVO', 102)
RotorOps.addZone('CHARLIE', 103)
RotorOps.setupConflict(100)
RotorOps.startConflict()
```
Here's what these functions are doing:
_**RotorOps.addZone(zone_name, defenders_flag)**_
Where defenders_flag is your DCS user flag that you can use to trigger events. If you read this flag, it will give you the percentage of defending units in the conflict zone. This flag is useful to trigger events like enemy reinforcements.
_**RotorOps.setupConflict(game_state_flag)**_
This function will Where game_state_flag is your DCS user flag that will reflect the state of the Conflict game. States are as follows: not_started = 0, alpha_active = 1, bravo_active = 2, charlie_active = 3, delta_active = 4, won = 99
**_RotorOps.startConflict()_**
This can be called at any point to kick off the Conflict game, so you can move this to another trigger function if you wish. When this function runs, all ground units currently in the staging area will be sent to the first conflict zone.
# Mission Editor code snippets
Copy and paste these codes snippets into your waypoint actions.
@ -20,7 +42,7 @@ RotorOps.deployTroops(8, this_group)
This is handy to add friendly or enemy reinforcements in combination with mission triggers. Mission templates will include at least one example of this usage. If you deploy troops into a Conflict Zone using this method, they will be controlled with the RotorOps AI.
## AI Tasks
## External AI Tasks
The Conflict game type sets AI tasks automatically for units inside of the staging area or Conflict Zones. You can use these snippets for groups outside of these zones or for your missions that are not running a Conflict game. Again, **you probably don't need these**.
### Set infantry or ground vehicles to patrol an area