Jump to content

MarkerExplode

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (MarkerExplode – created via PowerShell script (2025-11-11T21:12:20Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
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
EventDataEvent 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>