Closed PiG13BR closed 1 month ago
Given that CBA is also throwing an error, I doubt this is ACE's doing - I doubt it's even CBA's fault. I'll test it myself, but I have a feeling that it's something in 2.18 that's been changed.
ace_medical_death event is running for the object and then the group
I think it's the EH fault. It's returning wrong parameters, at least, wrong order of them. The _unit parameter should return the killed unit but it's actually returning the _killer.
ACE is not the culprit, as it still happens with CBA only:
20:55:16 Error in expression <ariable ["cba_xeh_killedBody", objNull] != _unit) then { _uni>
20:55:16 Error position: <!= _unit) then { _uni>
20:55:16 Error Generic error in expression
20:55:16 β₯ Context: [] L1 ()
[] L1 ()
It's really just BIS's fault
when adding a "UnitKilled" EH to a group:
Unit Killed XEH runs first and is passed 5 args
[B Alpha 1-2,X2,X1,X1,true]
1st is the group (these are the args that unitKilled group eh should be getting)
UnitKilled runs 2nd and is passed
[X2,X1,X1,true]
1st arg is the unit (these are the args that the killed unit eh should be getting)
so for some reason adding the group event switches the args around π€‘
Yea, confirmed that it happens in Vanilla only too.
Seems like this issue was fixed in 2.18 hotfix. https://dev.arma3.com/post/spotrep-00116
Tested this EH in editor with ace + CBA. No errors. Also checked .rpt file.
Mods (complete and add to the following information):
2.18 stable
3.18.1 stable
3.18.1 stable
Description: SP/editor - clean mission: Error in
.../addons/medical_feedback/XEH_postInit.sqf
when using group EH "UnitKilled". In dedi server .rpt: I've also got an error in thefnc_setDead.sqf
. In this case was not a clean mission. More info in the logs belowSteps to reproduce:
Expected behavior: No error showing up.
Where did the issue occur?
Log Files:
Additional context:
_group parameter
from the "UnitKilled" EH (?), and this generates the error.Screenshots: Screenshots of the error after killing the unit with the group EH. Thanks to artemoz