Jump to content

CreateExplosion

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: CreateExplosion
Function Description: Creates an explosion at a specified coordinate with a given blast radius; uses the game's explosion action to simulate an explosion effect at the provided position and strength.
File Location: cmm.MapCommandFunctions.lua
Syntax: CMM.CreateExplosion( table coord , number blast )
Return Value: nil
Parameters: Name Description
coordPosition vector3 where the explosion will occur; must be in world coordinates.
blastBlast radius size; higher values create larger explosion effects.
Example: CMM.CreateExplosion({x=100, y=50, z=0}, 50)
Example Description: Initiates an explosion at coordinates (100, 50, 0) with a blast strength of 50, simulating an explosion effect in the game world.
Related Functions:
Notes: