Fixed private array and added event listener

This commit is contained in:
Glowbal 2015-02-28 20:50:08 +01:00
parent 18998bb619
commit 15afb8846a
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ GVAR(heartBeatSounds_Slow) = ["ACE_heartbeat_slow_1", "ACE_heartbeat_slow_2", "A
GVAR(playingHeartBeatSound) = false;
["Medical_treatmentCompleted", FUNC(onTreatmentCompleted)] call ace_common_fnc_addEventHandler;
["medical_propagateWound", FUNC(onPropagateWound)] call ace_common_fnc_addEventHandler;
// Initialize all effects
// @todo: make this a macro?

View File

@ -14,6 +14,7 @@
#include "script_component.hpp"
private ["_unit", "_injury", "_openWounds", "_injuryID", "_exists"];
_unit = _this select 0;
_injury = _this select 1;