mirror of
https://github.com/spencershepard/RotorOps.git
synced 2025-11-10 15:45:30 +00:00
Updated Home (markdown)
20
Home.md
20
Home.md
@@ -2,7 +2,6 @@
|
|||||||
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 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
|
# Mission Editor code snippets
|
||||||
Copy and paste these codes snippets into your waypoint actions.
|
Copy and paste these codes snippets into your waypoint actions.
|
||||||
@@ -12,10 +11,11 @@ Copy and paste these codes snippets into your waypoint actions.
|
|||||||
### Drop troops from AI planes, helicopters, or ground vehicles.
|
### Drop troops from AI planes, helicopters, or ground vehicles.
|
||||||
Copy and paste this into a Run Script command (advanced waypoint actions) to drop 8 troops from a ground vehicle or aircraft. Works with both friendly and enemy craft.
|
Copy and paste this into a Run Script command (advanced waypoint actions) to drop 8 troops from a ground vehicle or aircraft. Works with both friendly and enemy craft.
|
||||||
|
|
||||||
`local this_group = ...
|
```local this_group = ...
|
||||||
RotorOps.deployTroops(8, this_group)`
|
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.
|
|
||||||
|
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
|
## AI Tasks
|
||||||
@@ -24,20 +24,20 @@ The Conflict game type sets AI tasks automatically for units inside of the stagi
|
|||||||
### Set infantry or ground vehicles to patrol an area
|
### 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
|
Copy and paste this into a Run Script command (advanced waypoint actions) for a group to wander an area
|
||||||
|
|
||||||
`local this_group = ...
|
```local this_group = ...
|
||||||
RotorOps.aiTask(this_group, "patrol")`
|
RotorOps.aiTask(this_group, "patrol")```
|
||||||
|
|
||||||
|
|
||||||
### Set infantry or ground vehicles to find enemies in a radius
|
### 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
|
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 = ...
|
```local this_group = ...
|
||||||
RotorOps.aiTask(this_group, "aggressive")`
|
RotorOps.aiTask(this_group, "aggressive")```
|
||||||
|
|
||||||
|
|
||||||
### Set infantry or ground vehicles to find enemies in a radius
|
### 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
|
Copy and paste this into a Run Script command (advanced waypoint actions) for a group to seek out enemies in a trigger zone
|
||||||
|
|
||||||
`local this_group = ...
|
```local this_group = ...
|
||||||
local zone_name = "changeme" --add the name of your zone
|
local zone_name = "changeme" --add the name of your zone
|
||||||
RotorOps.aiTask(this_group, "aggressive", zone_name)`
|
RotorOps.aiTask(this_group, "aggressive", zone_name)```
|
||||||
Reference in New Issue
Block a user