DCS command LoadingShip

From DCS World Wiki - Hoggitworld.com


Task: LoadingShip Added with: 2.8.0
Hierarchy: Scripting Root > Tasks > Command > LoadingShip
Tasking Type: Command
For: Ships
Available Under: All tasks types
Description: Sets the passed ship to be at the passed cargo value for loading. By default ships are 100% loaded. By setting the value to a lower number will result in the ship sitting higher in the water due to less mass being on board.
Format: This task needs to be in the following format.
LoadingShip= { 
  id = 'LoadingShip', 
  params = { 
    cargo = number, 
    unitId= number, 
  } 
}

Required parameters:

cargo: Value from 0 to 100 that defines how loaded the ship is.

unitId: Unit id of the unit whose cargo value is to be set.

Optional Parameters:

Enumerators:
Examples:
Notes: In the mission editor this command is only available if certain unit types exist within the group and will only list the valid unit types when selecting a unit.

See article Mission Editor: AI Tasking for more information on how AI tasking is handled within DCS.

Task List: Task Wrappers: mission, ComboTask, ControlledTask, WrappedAction


Tasks: AttackGroup, AttackUnit, Bombing, Strafing, CarpetBombing, AttackMapObject, BombingRunway, orbit, refueling, land, follow, followBigFormation, escort, Embarking, fireAtPoint, hold, FAC_AttackGroup, EmbarkToTransport, DisembarkFromTransport, CargoTransportation, goToWaypoint, groundEscort, RecoveryTanker

En-route Tasks: engageTargets, engageTargetsInZone, engageGroup, engageUnit, awacs, tanker, ewr, FAC_engageGroup, FAC

Commands: script, setCallsign, setFrequency, setFrequencyForUnit, switchWaypoint, stopRoute, switchAction, setInvisible, setImmortal, setUnlimitedFuel, activateBeacon, deactivateBeacon, activateICLS, deactivateICLS, eplrs, start, transmitMessage, stopTransmission, smoke_on_off, ActivateLink4, deactivateLink4, activateACLS, deactivateACLS, LoadingShip

Options: ROE, Reaction To Threat, Radar Using, Flare Using, Formation, RTB On Bingo, silence, Disperse on Attack, Alarm State, RTB on Out of Ammo, ECM Using, Prohibit AA, Prohibit Jettison, Prohibit Afterburner, Prohibit AG, Missile Attack Range, Prohibit WP Pass Report, Engage Air Weapons, Option Radio Usage Contact, Option Radio Usage Engage, Option Radio Usage Kill, AC Engagement Range Restriction, jett tanks if empty, forced attack, Altitude Restriction for AAA Min, restrict targets, Altitude Restriction for AAA Max