Skip to content

Commit

Permalink
Updated example mission to show more flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
birgersp committed Oct 14, 2016
1 parent 8eb14b7 commit 4ac1a8a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions example/example.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ taskForce1:reinforce()
taskForce1:enableMoveTimer(120)



-- Create a Russian task force
local taskForce2 = autogft.TaskForce:new(country.id.RUSSIA, {"spawn2"}, {"task3", "task2", "task1"})

-- Make task force go straight to second task by setting first control zone to red
-- (Control zone statuses are not shared across task forces)
taskForce2.controlZones[1].status = coalition.side.RED

-- Add 4 T-90's to it
taskForce2:addUnitSpec(4, unitType.vehicle.tank.T90)

Expand All @@ -35,6 +40,13 @@ taskForce2:enableMoveTimer(120)
taskForce2:enableRespawnTimer(300)



-- Create another russian task force, spawning in and defending task 2
local taskForce3 = autogft.TaskForce:new(country.id.RUSSIA, {"task2"}, {"task2"})
taskForce3:addUnitSpec(4, unitType.vehicle.ifv.BRDM2)
taskForce3:reinforce()
taskForce3:issueToTarget()


-- Enable F10 option for players to get intel (heading and distance) on closest enemy vehicles
autogft.enableIOCEV()

0 comments on commit 4ac1a8a

Please sign in to comment.