CoalitionPlayersAirbourne
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | CoalitionPlayersAirbourne | |
| Function Description: | Returns boolean based on if the unit supplied has a playername or not. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.CoalitionPlayersAirbourne( number or nil coal , table or nil airframeBL ) | |
| Return Value: | number | |
| Parameters: | Name | Description |
| coal | Optional coalition number (1 = Red, 2 = Blue). Defaults to nil and that returns both coalitions airbourne. | |
| airframeBL | Optional Airframe blacklist, if a player is in this specific type of airframe do not include them in the count | |
| Example: | CMM.CoalitionPlayersAirbourne(2,{"A10C_II","AH-64D_BLK_II"}) | |
| Example Description: | This will return the number of players airbourne for the Blue team that are not flying the A10C_II or the AH-64D_BLK_II airframes | |
| Related Functions: | ||
| Notes: | ||