GetMultiCrew
Appearance
| 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 |
| Object | A 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: | ||