Skip to content

Events - Restore using param in event calls - #1856

Merged
PabstMirror merged 2 commits into
masterfrom
eventParm
Sep 12, 2026
Merged

PabstMirror merged 2 commits into
masterfrom
eventParm

Conversation

@PabstMirror

Copy link
Copy Markdown
Contributor

Partial revert #1836
Handles event being called too early in preInit
This bug breaks XEH chain

Debug: Local event [event = cba_keybinding_registerKeybind],  [cba_events_eventNamespace = any]
Error in expression <ntName, []])];
{    _params call _x;} forEach +(cba_events_eventNamespace getV>
 Error position: <forEach +(cba_events_eventNamespace getV>
 Error foreach: Type Number,Not a Number, expected Array,HashMap
File x\cba\addons\events\fnc_localEvent.sqf..., line 31
 ➥ Context: 	[] L6 (x\cba\addons\xeh\fnc_initDisplay3DEN.sqf)
	[] L8 (x\cba\addons\xeh\fnc_initDisplay3DEN.sqf)
	[] L160 (x\cba\addons\xeh\fnc_preInit.sqf)
	[] L119 (x\cba\addons\xeh\fnc_preInit.sqf)
	[] L120 (x\cba\addons\xeh\fnc_preInit.sqf)
	[] L121 (x\cba\addons\xeh\fnc_preInit.sqf)
	[] L124 (x\cba\addons\xeh\fnc_preInit.sqf)
	[] L1 ()
	[] L5 (WBK_Zombies\bootstrap\XEH_preInit.sqf)
	[] L195 (x\cba\addons\keybinding\fnc_addKeybind.sqf)
	[] L31 (x\cba\addons\events\fnc_localEvent.sqf)

The Type Number error is confusing but can be replicated with {} forEach +nil

@PabstMirror PabstMirror added this to the 3.19.1 milestone Sep 9, 2026
Comment thread addons/events/script_component.hpp Outdated
@PabstMirror
PabstMirror merged commit 3d40d7f into master Sep 12, 2026
3 checks passed
@PabstMirror
PabstMirror deleted the eventParm branch September 12, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants