refactor and move ShipUnitTypes to the top
This commit is contained in:
@@ -30,6 +30,8 @@ else
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
ShipUnitTypes = { "1tnk", "1tnk", "jeep", "2tnk", "2tnk" }
|
||||||
|
|
||||||
ParadropWaypoints = { Paradrop1, Paradrop2, Paradrop3, Paradrop4, Paradrop5, Paradrop6, Paradrop7, Paradrop8 }
|
ParadropWaypoints = { Paradrop1, Paradrop2, Paradrop3, Paradrop4, Paradrop5, Paradrop6, Paradrop7, Paradrop8 }
|
||||||
|
|
||||||
BindActorTriggers = function(a)
|
BindActorTriggers = function(a)
|
||||||
@@ -69,7 +71,7 @@ end
|
|||||||
ShipAlliedUnits = function()
|
ShipAlliedUnits = function()
|
||||||
local transport = Actor.Create("lst", true, { Location = LstEntry.Location, Owner = allies })
|
local transport = Actor.Create("lst", true, { Location = LstEntry.Location, Owner = allies })
|
||||||
|
|
||||||
Utils.Do({ "1tnk", "1tnk", "jeep", "2tnk", "2tnk" }, function(type)
|
Utils.Do(ShipUnitTypes, function(type)
|
||||||
local a = Actor.Create(type, false, { Owner = allies })
|
local a = Actor.Create(type, false, { Owner = allies })
|
||||||
BindActorTriggers(a)
|
BindActorTriggers(a)
|
||||||
transport.LoadPassenger(a)
|
transport.LoadPassenger(a)
|
||||||
|
|||||||
Reference in New Issue
Block a user