MarkerScan
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | MarkerScan | |
| Function Description: | Initiates a satellite scan based on marker event data, determines scan range, draws a scan area on the map, detects enemy units within the zone, and notifies players of results while managing cooldown periods. | |
| File Location: | cmm.MapCommandFunctions.lua | |
| Syntax: | CMM.MarkerScan( table EventData ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| EventData | Custom Event Table passed by S_EVENT_MARK_REMOVED EventHandler containing pos and text fields; text is split to extract range value. | |
| Example: | CMM.MarkerScan({pos = {x=200,y=300,z=100}, text = "Scan:500"}) | |
| Example Description: | Demonstrates initiating a satellite scan at position {x=200,y=300,z=100} with a range of 500 units, detecting enemy units, and notifying players of scan results and unit counts. | |
| Related Functions: | ||
| Notes: | Map Command !scan | |