Use new Event Handlers

from 9a37538d50
This commit is contained in:
PabstMirror 2015-01-14 14:53:09 -06:00
parent a91b409702
commit f352b4cdb5
2 changed files with 2 additions and 2 deletions

View File

@ -6,4 +6,4 @@ PREP(flashbangThrownFuze);
PREP(nextMode);
PREP(throwGrenade);
[QGVAR(flashbangExplosionEvent), { _this call DFUNC(flashbangExplosionEH) }] call EFUNC(common,addNetEventHandler);
[QGVAR(flashbangExplosionEvent), { _this call DFUNC(flashbangExplosionEH) }] call EFUNC(common,addEventHandler);

View File

@ -15,6 +15,6 @@ if (alive _projectile) then {
_affected = _projectile nearEntities ["CAManBase", 50];
{
[QGVAR(flashbangExplosionEvent), [_x, _projectile]] call EFUNC(common,globalEvent);
[QGVAR(flashbangExplosionEvent), [_x], [_x, _projectile]] call EFUNC(common,targetEvent);
} forEach _affected;
};