Fix not all harvesters in cnc64gdi01 being rebuilt
This commit is contained in:
committed by
Matthias Mailänder
parent
51fe1d6629
commit
7c290b9f76
@@ -81,9 +81,10 @@ WorldLoaded = function()
|
|||||||
RepairNamedActors(Nod, 0.9)
|
RepairNamedActors(Nod, 0.9)
|
||||||
|
|
||||||
Trigger.AfterDelay(0, function()
|
Trigger.AfterDelay(0, function()
|
||||||
local harv = Nod.GetActorsByType("harv")[1]
|
|
||||||
local toBuild = function() return { "harv" } end
|
local toBuild = function() return { "harv" } end
|
||||||
RebuildHarvesters(harv, toBuild)
|
Utils.Do(Nod.GetActorsByType("harv"), function(harv)
|
||||||
|
RebuildHarvesters(harv, toBuild)
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local vehicleToBuild = function() return Utils.Random(AutocreateSquads) end
|
local vehicleToBuild = function() return Utils.Random(AutocreateSquads) end
|
||||||
|
|||||||
Reference in New Issue
Block a user