MarkerAddItemByAirbase
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | MarkerAddItemByAirbase | |
| Function Description: | ||
| File Location: | cmm.AirBaseFunctions.lua | |
| Syntax: | CMM.MarkerAddItemByAirbase( table EventData , number UnitID ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| EventData | Event data that contains the marker text (!additem:<weaponName>:<quantity>) and the position of the marker. | |
| UnitID | The unit ID to send a message to (used in multiplayer). | |
| Example: | CMM.MarkerAddItemByAirbase(EventData, 1) | |
| Example Description: | Adds 60 units of weapon weapons.missiles.AGM_114K to the closest airbase’s warehouse when the marker text is "!additem:weapons.missiles.AGM_114K:60". | |
| Related Functions: | ||
| Notes: | ||