MarkerExplode
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | MarkerExplode | |
| Function Description: | Triggers an explosion at a specified position with an optional strength value, using a configurable yield limit and default strength. | |
| File Location: | cmm.MapCommandFunctions.lua | |
| Syntax: | CMM.MarkerExplode( table EventData ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| EventData | Event data containing the position (vec3) and text input from the marker interaction | |
| Example: | CMM.MarkerExplode({pos = {x=-10267.375585433, y=181.19888114987, z=256710.69442841}, text = "!explode:300"}) | |
| Example Description: | Parses the input text to extract an explosion strength value (e.g., 300). If a value is provided, it attempts to convert it to a number; if not, it defaults to CMM.explode.size. | |
| Related Functions: | ||
| Notes: | Map Command !explode:<number Value> | |