DCS func getAvailableSlots

From DCS World Wiki - Hoggitworld.com
Revision as of 22:40, 22 April 2018 by Grimes (talk | contribs) (Created page with "{{Template:DCS_server_funcs |fName= getAvailableSlots |vNum= 2.5.0 |par1= DCS |par2= |par3= |par4= |desc= Returns a table of slots available...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Envrioment: Server
Function: getAvailableSlots Added with: 2.5.0
Member Of: DCS
Syntax: table DCS.getAvailableSlots( )
Description: Returns a table of slots available to a given coalition.


Return Value: table
Return Example: array of {unitId, type, role, callsign, groupName, country}
Examples:
Related Functions: Control API: setPause, getPause, stopMission, exitProcess, isMultiplayer, isServer, getModelTime, getRealTime, getMissionOptions, getAvailableCoalitions, getAvailableSlots, getCurrentMission, getMissionName, getMissionFilename, getMissionResult, getUnitProperty, getUnitType, getUnitTypeAttribute, writeDebriefing, setUserCallbacks, makeScreenShot
Notes: The "unitId" variable is actually the slotID. For all single seat aircraft this will not make a difference, however multicrew aircraft will appear differently. Specially in this format: unitID_seatID.

For example the unit id of 23 for a L-39 would appear as two entries. 23 and 23_1