MarkerCaptureAirbase
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | MarkerCaptureAirbase | |
| Function Description: | Handles the capture of an airbase when a marker is removed, determining if a capture truck is present and valid, checking for friendly and enemy units within range, and triggering appropriate messages or actions based on coalition ownership and player proximity. | |
| File Location: | cmm.MapCommandFunctions.lua | |
| Syntax: | CMM.MarkerCaptureAirbase( table EventData ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| EventData | Custom Event Table passed by S_EVENT_MARK_REMOVED EventHandler, containing pos and initiator data. | |
| Example: | CMM.MarkerCaptureAirbase{EventData} | |
| Example Description: | Demonstrates capturing an airbase at position (100,200,0) initiated by a coalition 1 unit, where friendly players are present and enemy units are absent. | |
| Related Functions: | ||
| Notes: | --TODO MVP done, refinement and user testing needed | |