Jump to content

IsCargo

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: IsCargo
Function Description: Determines whether the supplied object is a cargo object.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.IsCargo( table Obj )
Return Value:
Parameters: Name Description
ObjStatic Object (cargo)
Example: local isCargo = CMM.IsCargo(StaticObject.getByName("AmmoCargo"))
Example Description: Returns true if the argument is a cargo unit; otherwise false.
Related Functions:
Notes: