Jump to content

GetMultiCrew

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (GetMultiCrew – created via PowerShell script (2025-11-11T21:11:58Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: GetMultiCrew
Function Description: Returns the number of crew seats for a given airframe. The function accepts either a Unit object or a type name string, resolves it to a frame name, and looks up the seat count in an internal table. If the frame is not found, it defaults to 1.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.GetMultiCrew( table or string Object )
Return Value: number
Parameters: Name Description
ObjectA Unit object or the airframe’s type name string.
Example: local seats = CMM.GetMultiCrew(unit); env.info("Seats: "..tostring(seats))
Example Description: Demonstrates retrieving the seat count for a unit by passing the unit instance to CMM.GetMultiCrew and logging the result.
Related Functions:
Notes: