SetItem: Difference between revisions
Appearance
Ozdeadmeat (talk | contribs) SetItem – created via PowerShell script (2025-11-11T21:11:52Z) Tag: Recreated |
Ozdeadmeat (talk | contribs) m SetItem – created via PowerShell script (2026-02-11T01:15:41Z) |
||
| Line 1: | Line 1: | ||
{{Template:FunctionInfo|fName= SetItem|fDescription= This function will set an item type of a specified quantity to | {{Template:FunctionInfo|fName= SetItem|fDescription= This function will set an item type of a specified quantity to the supplied Warehouse|parentFile= cmm.AirBaseFunctions.lua|syntax= CMM.SetItem(<Warehouse Object Table>,<string>,<number>)|return= boolean|returnDesc= Returns nil|example= CMM.SetItem(Airbase.getByName("Sochi-Adler"),tostring("weapons.missiles.AGM_114K"), 5)|exampleDesc= |related= |note= |envType= CMM|par1= table WH|reqType1= table|reqName1= WH|desc1= Warehouse Object|par2= string ItemType|reqType2= string|reqName2= ItemType|desc2= ItemType Name|par3= number Value|reqType3= number|reqName3= Value|desc3= Amount of item to add}} | ||
Latest revision as of 14:15, 10 February 2026
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | SetItem | |
| Function Description: | This function will set an item type of a specified quantity to the supplied Warehouse | |
| File Location: | cmm.AirBaseFunctions.lua | |
| Syntax: | CMM.SetItem( table WH , string ItemType , number Value ) | |
| Return Value: | boolean | |
| Parameters: | Name | Description |
| WH | Warehouse Object | |
| ItemType | ItemType Name | |
| Value | Amount of item to add | |
| Example: | CMM.SetItem(Airbase.getByName("Sochi-Adler"),tostring("weapons.missiles.AGM_114K"), 5) | |
| Example Description: | ||
| Related Functions: | ||
| Notes: | ||