Updated Home (markdown)

spencershepard 2022-01-08 14:03:58 -08:00
parent 1d53cd3c1c
commit 5836de6c65

10
Home.md

@ -2,8 +2,11 @@
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.
***
# Mission Editor code snippets
Add these to your waypoint actions.
Copy and paste these codes snippets into your waypoint actions.
## Troop Drops
### Drop troops from AI planes, helicopters, or ground vehicles.
@ -14,19 +17,24 @@ 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.
## 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.
### Set infantry or ground vehicles to patrol an area
Copy and paste this into a Run Script command (advanced waypoint actions) for a group to wander an area
`local this_group = ...
RotorOps.aiTask(this_group, "patrol")`
### Set infantry or ground vehicles to find enemies in a radius
Copy and paste this into a Run Script command (advanced waypoint actions) for a group to seek out enemies in an area
`local this_group = ...
RotorOps.aiTask(this_group, "aggressive")`
### Set infantry or ground vehicles to find enemies in a radius
Copy and paste this into a Run Script command (advanced waypoint actions) for a group to seek out enemies in a trigger zone