Jump to content

CheckItemType: Difference between revisions

From CMM Wiki
checkItemType – created via PowerShell script (2025-11-11T21:11:51Z)
Tag: Recreated
 
m checkItemType – created via PowerShell script (2026-02-11T01:15:41Z)
 
Line 1: Line 1:
{{Template:FunctionInfo|fName=          checkItemType|fDescription=  |parentFile=    cmm.AirBaseFunctions.lua|syntax=        |return=        |returnDesc=    |example=        |exampleDesc=    |related=        |note=          |envType= CMM|par1=        string ItemType|reqType1=    string|reqName1=    ItemType|desc1=      ItemType Name   Checks if an item type is valid or not.}}
{{Template:FunctionInfo|fName=          checkItemType|fDescription=  This function will set an item type of a specified quantity to an Airbase Warehouse|parentFile=    cmm.AirBaseFunctions.lua|syntax=        CMM.checkItemType(<string>)|return=        boolean|returnDesc=    Returns true if item type is valid, false if not|example=        CMM.checkItemType("weapons.missiles.AGM_114K")|exampleDesc=    |related=        |note=          |envType= CMM|par1=        string ItemType|reqType1=    string|reqName1=    ItemType|desc1=      ItemType Name string to check}}

Latest revision as of 14:15, 10 February 2026

Return to CMM Command Reference
Environment: Mission Scripting
Function: checkItemType
Function Description: This function will set an item type of a specified quantity to an Airbase Warehouse
File Location: cmm.AirBaseFunctions.lua
Syntax: CMM.checkItemType( string ItemType )
Return Value: boolean
Parameters: Name Description
ItemTypeItemType Name string to check
Example: CMM.checkItemType("weapons.missiles.AGM_114K")
Example Description:
Related Functions:
Notes: