-
Notifications
You must be signed in to change notification settings - Fork 739
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
Add ace_medical "HandleDamage" EH index #5385
Conversation
The purpose is to allow modifying the ace_medical "HandleDamage" system more easily instead of removing all available eventhandlers and reassign them.
Doesn't work. There exist a variable for every unit. You would have to store it in object namespace and not global namespace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not functional.
addons/medical/XEH_init.sqf
Outdated
@@ -2,7 +2,10 @@ | |||
|
|||
params ["_unit"]; | |||
|
|||
_unit addEventHandler ["HandleDamage", {_this call FUNC(handleDamage)}]; | |||
_unit setVariable [ | |||
GVAR(HandleDamageEVHIndex), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably want to use QGVAR
and not just GVAR
Changed |
#push what about that request now? |
Merge conflict. |
I put this in medical-rewrite, but renamed the variable to |
The purpose is to allow modifying the ace_medical "HandleDamage"-system more easily instead of removing all available eventhandlers and reassigning them.
Changed lines:
addons\medical\XEH_init.sqf
, line 4