Updated RotorOps: Mission Creator Guide (markdown)

spencershepard 2022-01-08 22:38:46 -08:00
parent 7c1a6a2b63
commit 97b7bbbc9a

@ -59,3 +59,9 @@ RotorOps.deployTroops(8, this_group)
This is handy to add friendly or enemy reinforcements in combination with mission triggers. Demo missions 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.
## Zone Status Triggers
Here's an example of triggering an action with the 'defender status' flags we setup with the addZone() function. When we read these flags we will get the percentage of defending forces in the zone relative to their original force.
![](https://github.com/spencershepard/RotorOps/blob/develop/documentation/images/zone%20status%20trigger.PNG?raw=true)
Here, we're reading the flag for the 'ALPHA' zone and checking if it's between 0 and 90. So if the defending units in the zone are less that 90%, it will trigger our action. Here we are using it to activate a convoy that will ultimately drop more troops into the conflict zone.