Closed m0kka closed 3 months ago
@m0kka What error is being caused by removeEventHandler and CBA_fnc_removeEventHandler?
The getVariable getters in lines 151, 154 default to "" if the variable was not set/deleted, which is not a valid value for either removeEventHandler or the CBA equivalent. default variable should be -1 (or the statement executions should be guarded with if branches against execution)
don't know the specific circumstances of when this will error out (since the event ids should be correctly saved most of the time), but I did see it pop up in an rpt before
Having the disguises sorta awkwardly duct-taped into equipment isn't ideal, would like to move disguises to their own addon entirely for better overview and management.
Additional work items:
doIfSpotted
andremoveEvents
into separate functions instead of putting them in global vars (...each time the function is called)removeEventHandler
andCBA_fnc_removeEventHandler