-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XEH initPost runs twice when added retroactively via function #567
Comments
Does this always happen regardless of when the eventhandler is used? preInit vs. postInit vs. mid mission / scheduled init.sqf? |
Currently only tested from postInit, will try init.sqf and preInit also |
It only runs once from both preInit and init.sqf, so it seems to only be an issue when added during postInit |
Very interesting. That narrows down the problem alot. |
hijacking this for a note:
|
AI_2 starts in a car, listed twice |
So that is all? That fixes this issue? Dammit BI. |
looks like this is not fixed
|
Repro? |
EmptyMission.VR.zip |
Arma 3 Version:
1.66
(stable)CBA Version:
3.1.2
(dev 311d8d7)Mods:
\x\cba
\z\ace
@devcon_a3
(in-house dev console that I always run while developing)Description:
CBA_fnc_addClassEventHandler
to add an"initPost"
XEH to a vehicle with the retroactive parameter set to true, the event will run twice for existing instances of that vehicle.Steps to reproduce:
Run the following repro mission:
EmptyMission.VR.zip
You can see I've added an initPost EH to
CAManBase
(player unit) both via theCBA_fnc_addClassEventHandler
function and via theExtended_InitPost_EventHandlers
in description.extThe config version runs only once, while the scripted version runs twice.
Where did the issue occur?
RPT log file:
The text was updated successfully, but these errors were encountered: