Jump to content

Tools.LoadEH: Difference between revisions

From CMM Wiki
tools.LoadEH – created via PowerShell script (2025-11-11T21:12:51Z)
Tag: Recreated
 
m tools.LoadEH – created via PowerShell script (2026-01-01T06:03:42Z)
 
Line 1: Line 1:
{{Template:FunctionInfo|fName=          tools.LoadEH|fDescription=  Initializes and registers an event handler for S_EVENT_WEAPON_ADD to capture weapon addition events, logging the weapon name and full event data for debugging purposes.|parentFile=    cmm.tools.lua|syntax=        CMM.tools.LoadEH()|return=        nil|returnDesc=    Returns nothing; establishes the event handler and registers it with the world system.|example=        CMM.tools.LoadEH()|exampleDesc=    Sets up a handler that logs every weapon addition event, including the weapon name and full event data, and registers it to listen for S_EVENT_WEAPON_ADD events.|related=        |note=          |envType= CMM}}
{{Template:FunctionInfo|fName=          tools.LoadEH|fDescription=  initialises and registers an event handler for S_EVENT_WEAPON_ADD to capture weapon addition events, logging the weapon name and full event data for debugging purposes.|parentFile=    cmm.tools.lua|syntax=        CMM.tools.LoadEH()|return=        nil|returnDesc=    Returns nothing; establishes the event handler and registers it with the world system.|example=        CMM.tools.LoadEH()|exampleDesc=    Sets up a handler that logs every weapon addition event, including the weapon name and full event data, and registers it to listen for S_EVENT_WEAPON_ADD events.|related=        |note=          |envType= CMM}}

Latest revision as of 19:03, 31 December 2025

Return to CMM Command Reference
Environment: Mission Scripting
Function: tools.LoadEH
Function Description: initialises and registers an event handler for S_EVENT_WEAPON_ADD to capture weapon addition events, logging the weapon name and full event data for debugging purposes.
File Location: cmm.tools.lua
Syntax: CMM.tools.LoadEH( )
Return Value: nil
Parameters: Name Description
Example: CMM.tools.LoadEH()
Example Description: Sets up a handler that logs every weapon addition event, including the weapon name and full event data, and registers it to listen for S_EVENT_WEAPON_ADD events.
Related Functions:
Notes: