Jump to content

GetCargoState

From CMM Wiki
Revision as of 12:27, 24 June 2026 by Ozdeadmeat (talk | contribs) (GetCargoState – created via PowerShell script (2026-06-24T22:27:14Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: GetCargoState
Function Description: Gets the Max Wounded, Personnel , maxmass and current weight of cargo on board the player's current airframe. Returns a table with the cargo state information or nil if an error occurs. Logs informational messages for errors or successful retrievals.
File Location: cmm.sideMissionFunctions.lua
Syntax: CMM.GetCargoState( table UnitObject )
Return Value: nil or table
Parameters: Name Description
UnitObjectPlayer object
Example: CMM.Miz.CheckAirFrame(player, "CargoMission")
Example Description: Verifies that the player's airframe has the required cargo capacity for a cargo mission, returning true if valid and logging the match details.
Related Functions:
Notes: