Jump to content

MarkerSetItemByAirbase

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: MarkerSetItemByAirbase
Function Description:
File Location: cmm.AirBaseFunctions.lua
Syntax: CMM.MarkerSetItemByAirbase( table EventData , number UnitID )
Return Value: nil
Parameters: Name Description
EventDataEvent data that contains the marker text (!setItem:<weaponName>:<quantity>) and the position of the marker.
UnitIDThe unit ID to send a message to (used in multiplayer).
Example: CMM.MarkerSetItemByAirbase(EventData, 1)
Example Description: Sets the quantity of weapon weapons.missiles.AGM_114K to 100 at the closest airbase’s warehouse when the marker text is "!setItem:weapons.missiles.AGM_114K:100".
Related Functions:
Notes: