-
-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Tools (complete and add to the following information):
- HEMTT:
1.17.2 - Operating System: Windows 11
Description:
The magic variables _thisEvent and _thisEventHandler are flagged as undefined when they are used inside a function file that is not the same file as the eventhandler caller.
help[L-S13]: Undefined variable `_thisEvent`
ββ addons/main/functions/fnc_onDraw.sqf:3:28
β
3 β removeMissionEventHandler [_thisEvent, _thisEventHandler];
β ^^^^^^^^^^ undefined variable
help[L-S13]: Undefined variable `_thisEventHandler`
ββ addons/main/functions/fnc_onDraw.sqf:3:40
β
3 β removeMissionEventHandler [_thisEvent, _thisEventHandler];
β ^^^^^^^^^^^^^^^^^ undefined variable
Steps to reproduce:
- Create a CBA/ACE project with 2 function files, as shown in the example repo:
fnc_addDrawEH.sqfandfnc_onDraw.sqf. - Build the project
- Both
_thisEventand_thisEventHandlerare flagged as undefined variables
Expected behavior:
Magic variables should not be flagged as unused variables.
Logs:
Additional context:
This might be related to the CBA/ACE project structure?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working