Jump to content

SetItem

From CMM Wiki
Revision as of 10:11, 11 November 2025 by Ozdeadmeat (talk | contribs) (SetItem – created via PowerShell script (2025-11-11T21:11:52Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: SetItem
Function Description: This function will set an item type of a specified quantity to an Airbase Warehouse
File Location: cmm.AirBaseFunctions.lua
Syntax: CMM.SetItem( table WareHouse , string ItemType , number Value )
Return Value: nil
Parameters: Name Description
WareHouseWarehouse Object
ItemTypeItemType Name (can be aircraft or weapon or equipment name)
ValueAmount of item to set
Example: CMM.SetItem(Airbase.getByName("Sochi-Adler"):getWarehouse(),tostring("weapons.missiles.AGM_114K"), 5)
Example Description:
Related Functions:
Notes: