mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2025-08-15 06:17:22 +00:00
Cleaned up extraneous spaces and some formatting
This commit is contained in:
parent
42fd8e5889
commit
4ede8063f5
272
CTLD.lua
272
CTLD.lua
@ -94,7 +94,7 @@ ctld.troopPickupAtFOB = true -- if true, troops can also be picked up at a creat
|
||||
|
||||
ctld.buildTimeFOB = 120 --time in seconds for the FOB to be built
|
||||
|
||||
ctld.crateWaitTime = 40 -- time in seconds to wait before you can spawn another crate
|
||||
ctld.crateWaitTime = 40 -- time in seconds to wait before you can spawn another crate
|
||||
|
||||
ctld.forceCrateToBeMoved = true -- a crate must be picked up at least once and moved before it can be unpacked. Helps to reduce crate spam
|
||||
|
||||
@ -484,15 +484,15 @@ ctld.vehicleTransportEnabled = {
|
||||
"Hercules",
|
||||
}
|
||||
|
||||
-- ************** Units able to use DCS dynamic cargo system ******************
|
||||
-- DCS (version) added the ability to load and unload cargo from aircraft.
|
||||
-- Units listed here will spawn a cargo static that can be loaded with the standard DCS cargo system
|
||||
-- We will also use this to make modifications to the menu and other checks and messages
|
||||
ctld.dynamicCargoUnits = {
|
||||
"CH-47Fbl1",
|
||||
}
|
||||
|
||||
|
||||
-- ************** Units able to use DCS dynamic cargo system ******************
|
||||
-- DCS (version) added the ability to load and unload cargo from aircraft.
|
||||
-- Units listed here will spawn a cargo static that can be loaded with the standard DCS cargo system
|
||||
-- We will also use this to make modifications to the menu and other checks and messages
|
||||
ctld.dynamicCargoUnits = {
|
||||
"CH-47Fbl1",
|
||||
}
|
||||
|
||||
|
||||
-- ************** Maximum Units SETUP for UNITS ******************
|
||||
|
||||
-- Put the name of the Unit you want to limit group sizes too
|
||||
@ -692,113 +692,113 @@ ctld.loadableGroups = {
|
||||
-- Weights must be unique as we use the weight to change the cargo to the correct unit
|
||||
-- when we unpack
|
||||
--
|
||||
ctld.spawnableCrates = {
|
||||
-- name of the sub menu on F10 for spawning crates
|
||||
["Combat Vehicles"] = {
|
||||
--crates you can spawn
|
||||
-- weight in KG
|
||||
-- Desc is the description on the F10 MENU
|
||||
-- unit is the model name of the unit to spawn
|
||||
-- cratesRequired - if set requires that many crates of the same type within 100m of each other in order build the unit
|
||||
-- side is optional but 2 is BLUE and 1 is RED
|
||||
ctld.spawnableCrates = {
|
||||
-- name of the sub menu on F10 for spawning crates
|
||||
["Combat Vehicles"] = {
|
||||
--crates you can spawn
|
||||
-- weight in KG
|
||||
-- Desc is the description on the F10 MENU
|
||||
-- unit is the model name of the unit to spawn
|
||||
-- cratesRequired - if set requires that many crates of the same type within 100m of each other in order build the unit
|
||||
-- side is optional but 2 is BLUE and 1 is RED
|
||||
|
||||
-- Some descriptions are filtered to determine if JTAC or not!
|
||||
-- Some descriptions are filtered to determine if JTAC or not!
|
||||
|
||||
--- BLUE
|
||||
{ weight = 1000, desc = "Humvee - MG", unit = "M1043 HMMWV Armament", side = 2 }, --careful with the names as the script matches the desc to JTAC types
|
||||
{ weight = 1001, desc = "Humvee - TOW", unit = "M1045 HMMWV TOW", side = 2, cratesRequired = 2 },
|
||||
{ weight = 1002, desc = "Light Tank - MRAP", unit="MaxxPro_MRAP", side = 2, cratesRequired = 2 },
|
||||
{ weight = 1003, desc = "Med Tank - LAV-25", unit="LAV-25", side = 2, cratesRequired = 3 },
|
||||
{ weight = 1004, desc = "Heavy Tank - Abrams", unit="M1A2C_SEP_V3", side = 2, cratesRequired = 4 },
|
||||
--- BLUE
|
||||
{ weight = 1000, desc = "Humvee - MG", unit = "M1043 HMMWV Armament", side = 2 }, --careful with the names as the script matches the desc to JTAC types
|
||||
{ weight = 1001, desc = "Humvee - TOW", unit = "M1045 HMMWV TOW", side = 2, cratesRequired = 2 },
|
||||
{ weight = 1002, desc = "Light Tank - MRAP", unit="MaxxPro_MRAP", side = 2, cratesRequired = 2 },
|
||||
{ weight = 1003, desc = "Med Tank - LAV-25", unit="LAV-25", side = 2, cratesRequired = 3 },
|
||||
{ weight = 1004, desc = "Heavy Tank - Abrams", unit="M1A2C_SEP_V3", side = 2, cratesRequired = 4 },
|
||||
|
||||
--- RED
|
||||
{ weight = 1005, desc = "BTR-D", unit = "BTR_D", side = 1 },
|
||||
{ weight = 1006, desc = "BRDM-2", unit = "BRDM-2", side = 1 },
|
||||
-- need more redfor!
|
||||
},
|
||||
["Support"] = {
|
||||
--- BLUE
|
||||
{ weight = 1007, desc = "Hummer - JTAC", unit = "Hummer", side = 2, cratesRequired = 2 }, -- used as jtac and unarmed, not on the crate list if JTAC is disabled
|
||||
{ weight = 1008, desc = "M-818 Ammo Truck", unit = "M 818", side = 2, cratesRequired = 2 },
|
||||
|
||||
--- RED
|
||||
{ weight = 1005, desc = "BTR-D", unit = "BTR_D", side = 1 },
|
||||
{ weight = 1006, desc = "BRDM-2", unit = "BRDM-2", side = 1 },
|
||||
-- need more redfor!
|
||||
},
|
||||
["Support"] = {
|
||||
--- BLUE
|
||||
{ weight = 1007, desc = "Hummer - JTAC", unit = "Hummer", side = 2, cratesRequired = 2 }, -- used as jtac and unarmed, not on the crate list if JTAC is disabled
|
||||
{ weight = 1008, desc = "M-818 Ammo Truck", unit = "M 818", side = 2, cratesRequired = 2 },
|
||||
{ weight = 1009, desc = "SKP-11 - JTAC", unit = "SKP-11", side = 1 }, -- used as jtac and unarmed, not on the crate list if JTAC is disabled
|
||||
{ weight = 1010, desc = "Ural-375 Ammo Truck", unit = "Ural-375", side = 1, cratesRequired = 2 },
|
||||
|
||||
--- RED
|
||||
{ weight = 1009, desc = "SKP-11 - JTAC", unit = "SKP-11", side = 1 }, -- used as jtac and unarmed, not on the crate list if JTAC is disabled
|
||||
{ weight = 1010, desc = "Ural-375 Ammo Truck", unit = "Ural-375", side = 1, cratesRequired = 2 },
|
||||
--- Both
|
||||
{ weight = 1011, desc = "EWR Radar", unit="FPS-117", cratesRequired = 3 },
|
||||
{ weight = 1012, desc = "FOB Crate - Small", unit = "FOB-SMALL" }, -- Builds a FOB! - requires 3 * ctld.cratesRequiredForFOB
|
||||
|
||||
--- Both
|
||||
{ weight = 1011, desc = "EWR Radar", unit="FPS-117", cratesRequired = 3 },
|
||||
{ weight = 1012, desc = "FOB Crate - Small", unit = "FOB-SMALL" }, -- Builds a FOB! - requires 3 * ctld.cratesRequiredForFOB
|
||||
},
|
||||
["Artillery"] = {
|
||||
--- BLUE
|
||||
{ weight = 1013, desc = "MLRS", unit = "MLRS", side=2, cratesRequired = 3 },
|
||||
{ weight = 1014, desc = "SpGH DANA", unit = "SpGH_Dana", side=2, cratesRequired = 3 },
|
||||
{ weight = 1015, desc = "T155 Firtina", unit = "T155_Firtina", side=2, cratesRequired = 3 },
|
||||
{ weight = 1016, desc = "Howitzer", unit = "M-109", side=2, cratesRequired = 3 },
|
||||
|
||||
},
|
||||
["Artillery"] = {
|
||||
--- BLUE
|
||||
{ weight = 1013, desc = "MLRS", unit = "MLRS", side=2, cratesRequired = 3 },
|
||||
{ weight = 1014, desc = "SpGH DANA", unit = "SpGH_Dana", side=2, cratesRequired = 3 },
|
||||
{ weight = 1015, desc = "T155 Firtina", unit = "T155_Firtina", side=2, cratesRequired = 3 },
|
||||
{ weight = 1016, desc = "Howitzer", unit = "M-109", side=2, cratesRequired = 3 },
|
||||
--- RED
|
||||
{ weight = 1017, desc = "SPH 2S19 Msta", unit = "SAU Msta", side = 1, cratesRequired = 3 },
|
||||
|
||||
--- RED
|
||||
{ weight = 1017, desc = "SPH 2S19 Msta", unit = "SAU Msta", side = 1, cratesRequired = 3 },
|
||||
},
|
||||
["SAM short range"] = {
|
||||
--- BLUE
|
||||
{ weight = 1018, desc = "M1097 Avenger", unit = "M1097 Avenger", side = 2, cratesRequired = 3 },
|
||||
|
||||
},
|
||||
["SAM short range"] = {
|
||||
--- BLUE
|
||||
{ weight = 1018, desc = "M1097 Avenger", unit = "M1097 Avenger", side = 2, cratesRequired = 3 },
|
||||
--- RED
|
||||
{ weight = 1019, desc = "Strela-1 9P31", unit = "Strela-1 9P31", side = 1, cratesRequired = 3 },
|
||||
|
||||
--- RED
|
||||
{ weight = 1019, desc = "Strela-1 9P31", unit = "Strela-1 9P31", side = 1, cratesRequired = 3 },
|
||||
},
|
||||
["SAM mid range"] = {
|
||||
--- BLUE
|
||||
-- HAWK System
|
||||
{ weight = 1020, desc = "HAWK Launcher", unit = "Hawk ln", side = 2},
|
||||
{ weight = 1021, desc = "HAWK Search Radar", unit = "Hawk sr", side = 2 },
|
||||
{ weight = 1022, desc = "HAWK Track Radar", unit = "Hawk tr", side = 2 },
|
||||
{ weight = 1023, desc = "HAWK PCP", unit = "Hawk pcp" , side = 2 },
|
||||
{ weight = 1024, desc = "HAWK CWAR", unit = "Hawk cwar" , side = 2 },
|
||||
{ weight = 1025, desc = "HAWK Repair", unit = "HAWK Repair" , side = 2 },
|
||||
-- End of HAWK
|
||||
|
||||
},
|
||||
["SAM mid range"] = {
|
||||
--- BLUE
|
||||
-- HAWK System
|
||||
{ weight = 1020, desc = "HAWK Launcher", unit = "Hawk ln", side = 2},
|
||||
{ weight = 1021, desc = "HAWK Search Radar", unit = "Hawk sr", side = 2 },
|
||||
{ weight = 1022, desc = "HAWK Track Radar", unit = "Hawk tr", side = 2 },
|
||||
{ weight = 1023, desc = "HAWK PCP", unit = "Hawk pcp" , side = 2 },
|
||||
{ weight = 1024, desc = "HAWK CWAR", unit = "Hawk cwar" , side = 2 },
|
||||
{ weight = 1025, desc = "HAWK Repair", unit = "HAWK Repair" , side = 2 },
|
||||
-- End of HAWK
|
||||
--- RED
|
||||
-- KUB SYSTEM
|
||||
{ weight = 1026, desc = "KUB Launcher", unit = "Kub 2P25 ln", side = 1},
|
||||
{ weight = 1027, desc = "KUB Radar", unit = "Kub 1S91 str", side = 1 },
|
||||
{ weight = 1028, desc = "KUB Repair", unit = "KUB Repair", side = 1},
|
||||
-- End of KUB
|
||||
|
||||
--- RED
|
||||
-- KUB SYSTEM
|
||||
{ weight = 1026, desc = "KUB Launcher", unit = "Kub 2P25 ln", side = 1},
|
||||
{ weight = 1027, desc = "KUB Radar", unit = "Kub 1S91 str", side = 1 },
|
||||
{ weight = 1028, desc = "KUB Repair", unit = "KUB Repair", side = 1},
|
||||
-- End of KUB
|
||||
|
||||
},
|
||||
["SAM long range"] = {
|
||||
--- BLUE
|
||||
-- Patriot System
|
||||
{ weight = 1029, desc = "Patriot Launcher", unit = "Patriot ln", side = 2 },
|
||||
{ weight = 1030, desc = "Patriot Radar", unit = "Patriot str" , side = 2 },
|
||||
{ weight = 1031, desc = "Patriot ECS", unit = "Patriot ECS", side = 2 },
|
||||
{ weight = 1032, desc = "Patriot AMG (optional)", unit = "Patriot AMG" , side = 2 },
|
||||
{ weight = 1033, desc = "Patriot Repair", unit = "Patriot Repair" , side = 2 },
|
||||
-- End of Patriot
|
||||
},
|
||||
},
|
||||
["SAM long range"] = {
|
||||
--- BLUE
|
||||
-- Patriot System
|
||||
{ weight = 1029, desc = "Patriot Launcher", unit = "Patriot ln", side = 2 },
|
||||
{ weight = 1030, desc = "Patriot Radar", unit = "Patriot str" , side = 2 },
|
||||
{ weight = 1031, desc = "Patriot ECS", unit = "Patriot ECS", side = 2 },
|
||||
{ weight = 1032, desc = "Patriot AMG (optional)", unit = "Patriot AMG" , side = 2 },
|
||||
{ weight = 1033, desc = "Patriot Repair", unit = "Patriot Repair" , side = 2 },
|
||||
-- End of Patriot
|
||||
},
|
||||
}
|
||||
|
||||
ctld.spawnableCratesModels = {
|
||||
["load"] = {
|
||||
["category"] = "Fortifications",
|
||||
["type"] = "Cargo04",
|
||||
["canCargo"] = false,
|
||||
},
|
||||
["sling"] = {
|
||||
["category"] = "Cargos",
|
||||
["shape_name"] = "bw_container_cargo",
|
||||
["type"] = "container_cargo",
|
||||
["canCargo"] = true
|
||||
},
|
||||
["dynamic"] = {
|
||||
ctld.spawnableCratesModels = {
|
||||
["load"] = {
|
||||
["category"] = "Fortifications",
|
||||
["type"] = "Cargo04",
|
||||
["canCargo"] = false,
|
||||
},
|
||||
["sling"] = {
|
||||
["category"] = "Cargos",
|
||||
["type"] = "ammo_cargo",
|
||||
["canCargo"] = true
|
||||
}
|
||||
}
|
||||
|
||||
["shape_name"] = "bw_container_cargo",
|
||||
["type"] = "container_cargo",
|
||||
["canCargo"] = true
|
||||
},
|
||||
["dynamic"] = {
|
||||
["category"] = "Cargos",
|
||||
["type"] = "ammo_cargo",
|
||||
["canCargo"] = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
--[[ Placeholder for different type of cargo containers. Let's say pipes and trunks, fuel for FOB building
|
||||
["shape_name"] = "ab-212_cargo",
|
||||
@ -1776,7 +1776,7 @@ function ctld.getTransportUnit(_unitName)
|
||||
return nil
|
||||
end
|
||||
|
||||
function ctld.spawnCrateStatic(_country, _unitId, _point, _name, _weight, _side,_hdg, _model_type)
|
||||
function ctld.spawnCrateStatic(_country, _unitId, _point, _name, _weight, _side, _hdg,_model_type)
|
||||
|
||||
local _crate
|
||||
local _spawnedCrate
|
||||
@ -1812,13 +1812,13 @@ end
|
||||
_spawnedCrate = Unit.getByName(_name)
|
||||
else
|
||||
|
||||
if _model_type ~= nil then
|
||||
_crate = mist.utils.deepCopy(ctld.spawnableCratesModels[_model_type])
|
||||
elseif ctld.slingLoad then
|
||||
_crate = mist.utils.deepCopy(ctld.spawnableCratesModels["sling"])
|
||||
else
|
||||
_crate = mist.utils.deepCopy(ctld.spawnableCratesModels["load"])
|
||||
end
|
||||
if _model_type ~= nil then
|
||||
_crate = mist.utils.deepCopy(ctld.spawnableCratesModels[_model_type])
|
||||
elseif ctld.slingLoad then
|
||||
_crate = mist.utils.deepCopy(ctld.spawnableCratesModels["sling"])
|
||||
else
|
||||
_crate = mist.utils.deepCopy(ctld.spawnableCratesModels["load"])
|
||||
end
|
||||
|
||||
_crate["y"] = _point.z
|
||||
_crate["x"] = _point.x
|
||||
@ -2237,9 +2237,9 @@ function ctld.generateTroopTypes(_side, _countOrTemplate, _country)
|
||||
|
||||
if _countOrTemplate.inf then
|
||||
if _side == 2 then
|
||||
_troops = ctld.insertIntoTroopsArray("Soldier M4 GRG",_countOrTemplate.inf,_troops)
|
||||
_troops = ctld.insertIntoTroopsArray("Soldier M4 GRG",_countOrTemplate.inf,_troops)
|
||||
else
|
||||
_troops = ctld.insertIntoTroopsArray("Infantry AK",_countOrTemplate.inf,_troops)
|
||||
_troops = ctld.insertIntoTroopsArray("Infantry AK",_countOrTemplate.inf,_troops)
|
||||
end
|
||||
_weight = _weight + getSoldiersWeight(_countOrTemplate.inf, ctld.RIFLE_WEIGHT)
|
||||
end
|
||||
@ -2265,9 +2265,9 @@ function ctld.generateTroopTypes(_side, _countOrTemplate, _country)
|
||||
|
||||
if _countOrTemplate.jtac then
|
||||
if _side == 2 then
|
||||
_troops = ctld.insertIntoTroopsArray("Soldier M4 GRG",_countOrTemplate.jtac,_troops, "JTAC")
|
||||
_troops = ctld.insertIntoTroopsArray("Soldier M4 GRG",_countOrTemplate.jtac,_troops, "JTAC")
|
||||
else
|
||||
_troops = ctld.insertIntoTroopsArray("Infantry AK",_countOrTemplate.jtac,_troops, "JTAC")
|
||||
_troops = ctld.insertIntoTroopsArray("Infantry AK",_countOrTemplate.jtac,_troops, "JTAC")
|
||||
end
|
||||
_hasJTAC = true
|
||||
_weight = _weight + getSoldiersWeight(_countOrTemplate.jtac, ctld.JTAC_WEIGHT + ctld.RIFLE_WEIGHT)
|
||||
@ -2276,7 +2276,7 @@ function ctld.generateTroopTypes(_side, _countOrTemplate, _country)
|
||||
else
|
||||
for _i = 1, _countOrTemplate do
|
||||
|
||||
local _unitType = "Infantry AK"
|
||||
local _unitType = "Infantry AK"
|
||||
|
||||
if _side == 2 then
|
||||
if _i <=2 then
|
||||
@ -2289,7 +2289,7 @@ function ctld.generateTroopTypes(_side, _countOrTemplate, _country)
|
||||
_unitType = "Soldier stinger"
|
||||
_weight = _weight + getSoldiersWeight(1, ctld.MANPAD_WEIGHT)
|
||||
else
|
||||
_unitType = "Soldier M4 GRG"
|
||||
_unitType = "Soldier M4 GRG"
|
||||
_weight = _weight + getSoldiersWeight(1, ctld.RIFLE_WEIGHT)
|
||||
end
|
||||
else
|
||||
@ -2866,7 +2866,7 @@ function ctld.checkHoverStatus()
|
||||
ctld.inTransitSlingLoadCrates[_name] = ctld.inTransitSlingLoadCrates[_name] or {}
|
||||
|
||||
--only check transports that are hovering and not planes
|
||||
if _transUnit ~= nil and #ctld.inTransitSlingLoadCrates[_name] < _cargoCapacity and ctld.inAir(_transUnit) and ctld.unitCanCarryVehicles(_transUnit) == false and not ctld.unitDynamicCargoCapable(_transUnit) then
|
||||
if _transUnit ~= nil and #ctld.inTransitSlingLoadCrates[_name] < _cargoCapacity and ctld.inAir(_transUnit) and ctld.unitCanCarryVehicles(_transUnit) == false and not ctld.unitDynamicCargoCapable(_transUnit) then
|
||||
|
||||
|
||||
local _crates = ctld.getCratesAndDistance(_transUnit)
|
||||
@ -3281,7 +3281,7 @@ function ctld.getClosestCrate(_heli, _crates, _type)
|
||||
if (_crate.details.unit == _type or _type == nil) then
|
||||
_distance = _crate.dist
|
||||
|
||||
if _distance ~= nil and (_shortestDistance == -1 or _distance < _shortestDistance) and _distance > _minimumDistance then
|
||||
if _distance ~= nil and (_shortestDistance == -1 or _distance < _shortestDistance) and _distance > _minimumDistance then
|
||||
_shortestDistance = _distance
|
||||
_closetCrate = _crate
|
||||
end
|
||||
@ -3375,7 +3375,7 @@ function ctld.unpackCrates(_arguments)
|
||||
|
||||
elseif _crate ~= nil and _crate.dist < 200 then
|
||||
|
||||
if ctld.forceCrateToBeMoved and ctld.crateMove[_crate.crateUnit:getName()] and not ctld.unitDynamicCargoCapable(_heli) then
|
||||
if ctld.forceCrateToBeMoved and ctld.crateMove[_crate.crateUnit:getName()] and not ctld.unitDynamicCargoCapable(_heli) then
|
||||
ctld.displayMessageToGroup(_heli,"Sorry you must move this crate before you unpack it!", 20)
|
||||
return
|
||||
end
|
||||
@ -3442,7 +3442,7 @@ function ctld.unpackCrates(_arguments)
|
||||
|
||||
else
|
||||
|
||||
ctld.displayMessageToGroup(_heli, "No friendly crates close enough to unpack, or crate too close to aircraft.", 20)
|
||||
ctld.displayMessageToGroup(_heli, "No friendly crates close enough to unpack, or crate too close to aircraft.", 20)
|
||||
end
|
||||
end
|
||||
end, _arguments)
|
||||
@ -5047,7 +5047,7 @@ function ctld.unitCanCarryVehicles(_unit)
|
||||
|
||||
for _, _name in ipairs(ctld.vehicleTransportEnabled) do
|
||||
local _nameLower = string.lower(_name)
|
||||
if string.find(_type, _nameLower, 1, true) then
|
||||
if string.find(_type, _nameLower, 1, true) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
@ -5055,7 +5055,7 @@ function ctld.unitCanCarryVehicles(_unit)
|
||||
return false
|
||||
end
|
||||
|
||||
function ctld.unitDynamicCargoCapable(_unit)
|
||||
function ctld.unitDynamicCargoCapable(_unit)
|
||||
local cache = {}
|
||||
local _type = string.lower(_unit:getTypeName())
|
||||
local result = cache[_type]
|
||||
@ -5073,8 +5073,8 @@ end
|
||||
ctld.logDebug("result=[%s]", ctld.p(result))
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function ctld.isJTACUnitType(_type)
|
||||
|
||||
_type = string.lower(_type)
|
||||
@ -6688,21 +6688,21 @@ function ctld.setJTAC9Line(_args)
|
||||
end
|
||||
ctld.jtacSpecialOptions._9Line.setter = ctld.setJTAC9Line
|
||||
|
||||
function ctld.setGrpROE(_grp, _ROE)
|
||||
if _ROE == nil then
|
||||
_ROE = AI.Option.Ground.val.ROE.OPEN_FIRE
|
||||
end
|
||||
function ctld.setGrpROE(_grp, _ROE)
|
||||
if _ROE == nil then
|
||||
_ROE = AI.Option.Ground.val.ROE.OPEN_FIRE
|
||||
end
|
||||
|
||||
_grp = ctld.getAliveGroup(_grp)
|
||||
_grp = ctld.getAliveGroup(_grp)
|
||||
|
||||
if _grp ~= nil then
|
||||
local _controller = _grp:getController();
|
||||
Controller.setOption(_controller, AI.Option.Ground.id.ALARM_STATE, AI.Option.Ground.val.ALARM_STATE.AUTO)
|
||||
Controller.setOption(_controller, AI.Option.Ground.id.ROE, _ROE)
|
||||
_controller:setTask(_grp)
|
||||
end
|
||||
end
|
||||
|
||||
local _controller = _grp:getController();
|
||||
Controller.setOption(_controller, AI.Option.Ground.id.ALARM_STATE, AI.Option.Ground.val.ALARM_STATE.AUTO)
|
||||
Controller.setOption(_controller, AI.Option.Ground.id.ROE, _ROE)
|
||||
_controller:setTask(_grp)
|
||||
end
|
||||
end
|
||||
|
||||
function ctld.isInfantry(_unit)
|
||||
|
||||
local _typeName = _unit:getTypeName()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user