Jump to content

CreateIllum

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: CreateIllum
Function Description: Creates an illumination effect at a specified coordinate with a given brightness level; adjusts the Y-coordinate to 1250 and uses the illumination bomb trigger to spawn the effect.
File Location: cmm.MapCommandFunctions.lua
Syntax: CMM.CreateIllum( table coord , number brightness )
Return Value: nil
Parameters: Name Description
coordVector3 coordinate where the illumination effect will be placed; Y-coordinate is automatically set to 1250.
brightnessBrightness value for the illumination effect; must be a number and is used directly by trigger.action.illuminationBomb.
Example: CMM.CreateIllum({x=100,y=200,z=300}, 4000)
Example Description: Creates an illumination effect at (100,200,300) with a brightness of 4000, automatically adjusting Y to 1250 before spawning.
Related Functions:
Notes: