Module Cargo.CargoSlingload
Cargo - Management of single cargo crates, which are based on a STATIC object.
The cargo can only be slingloaded.
Author: FlightControl
Contributions:
Global(s)
Global CARGO_SLINGLOAD |
Defines a cargo that is represented by a UNIT object within the simulator, and can be transported by a carrier.
|
#CARGO_SLINGLOAD
CARGO_SLINGLOAD
Defines a cargo that is represented by a UNIT object within the simulator, and can be transported by a carrier.
The above cargo classes are also used by the TASK_CARGO_ classes to allow human players to transport cargo as part of a tasking:
Type(s)
Models the behaviour of cargo crates, which can only be slingloaded.
Field(s)
Function(s)
Check if the cargo can be Boarded.
Check if the cargo can be Loaded.
Check if the cargo can be Slingloaded.
Check if the cargo can be Unboarded.
Check if the cargo can be Unloaded.
Get the current Coordinate of the CargoGroup.
Defined in:
Return values:
The current Coordinate of the first Cargo of the CargoGroup.
There is no valid Cargo in the CargoGroup.
Get the transportation method of the Cargo.
Defined in:
Return value:
The transportation method of the Cargo.
Check if the CargoGroup is alive.
Defined in:
Return values:
true if the CargoGroup is alive.
false if the CargoGroup is dead.
Check if Cargo Slingload is in the radius for the Cargo to be Boarded or Loaded.
Defined in:
Parameter:
Return value:
true if the Cargo Slingload is within the loading radius.
Check if Cargo Crate is in the radius for the Cargo to be reported.
Defined in:
Parameter:
Return value:
true if the Cargo Crate is within the report radius.
Check if Cargo is near to the Carrier.
The Cargo is near to the Carrier within NearRadius.
Defined in:
Parameters:
Return values:
The Cargo is near to the Carrier.
The Cargo is not near to the Carrier.
CARGO_SLINGLOAD Constructor.
Defined in:
Parameters:
Return value:
Route Cargo to Coordinate and randomize locations.
Field(s)
Function(s)
CARGO_REPRESENTABLE Destructor.
Defined in:
Return value:
Send a message to a Wrapper.Group through a communication channel near the cargo.
Defined in:
Parameters:
(optional) The name of the Group used as a prefix for the message to the Group. If not provided, there will be nothing shown.
CARGO_REPRESENTABLE Constructor.
Defined in:
Parameters:
(optional) Radius in meters.
(optional) Radius in meters when the cargo is loaded into the carrier.
Return value:
Route a cargo unit to a PointVec2.
Defined in:
Parameters:
Return value: