Skip to content

Commit

Permalink
Added ground vehicles with spawning ability
Browse files Browse the repository at this point in the history
  • Loading branch information
srogers909 committed Mar 4, 2023
1 parent 06a7b1c commit f81f441
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Binary file modified OVERLOAD-Caucasus.miz
Binary file not shown.
26 changes: 25 additions & 1 deletion primary_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ local PlaneTable = {
"Opp-J11A"
}

local VehicleTable = {
"Opp-Vehicles",
"Opp-Vehicles-1",
"Opp-Vehicles-2",
"Opp-Vehicles-3",
"Opp-Vehicles-4",
}

local ZoneTable = {
ZONE:New("Zone-1"),
ZONE:New("Zone-2"),
Expand All @@ -35,6 +43,13 @@ local ZoneTable = {
ZONE:New("Zone-7")
}

local VehicleZoneTable = {
ZONE:New("Vehicle-Zone-1"),
ZONE:New("Vehicle-Zone-2"),
ZONE:New("Vehicle-Zone-3"),
ZONE:New("Vehicle-Zone-4"),
}

SPAWN:New("Opp-Plane")
:InitKeepUnitNames(false)
:InitLimit(10, 200)
Expand All @@ -43,4 +58,13 @@ SPAWN:New("Opp-Plane")
:InitRandomizeZones(ZoneTable)
:InitSkill("Random")
:InitRepeatOnLanding()
:SpawnScheduled(30, 0.5)
:SpawnScheduled(30, 0.5)

SPAWN:New("Opp-Vehicles")
:InitKeepUnitNames(false)
:InitLimit(4, 200)
:InitRandomizeRoute(0, 1, 9, 5000)
:InitRandomizeTemplate(VehicleTable)
:InitRandomizeZones(VehicleZoneTable)
:InitSkill("Random")
:SpawnScheduled(120, 0.5)

0 comments on commit f81f441

Please sign in to comment.