Tools.LoadEH
Appearance
| 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: | ||