local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua')
function OnPopulate()
ScenarioUtils.InitializeArmies()
end
function OnStart(self)
-- spawn the units
local army = "ARMY_1"
local group = "GROUP_1"
local wreckage = false
local units = ScenarioUtils.CreateArmyGroup(army, group, wreckage);
-- make them move along a path
local chain = "c1"
local path = ScenarioUtils.ChainToPositions(chain)
for k, node in path do
IssuePatrol(units, node)
-- or:
-- IssueMove(units, node)
end
end
Statistics: Posted by Jip — 19 Jul 2020, 00:39
Statistics: Posted by Vuud — 21 May 2020, 19:34