mirror of
https://github.com/spencershepard/RotorOps.git
synced 2025-11-10 15:45:30 +00:00
Updated RotorOps: Mission Creator Guide (markdown)
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.
|
||||
|
||||

|
||||
|
||||
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.
|
||||
Loading…
x
Reference in New Issue
Block a user