Skip to content

Commit

Permalink
Merge pull request #1504 from CBATeam/muzzleBreak
Browse files Browse the repository at this point in the history
Events - Fix muzzle event args (BREAKING)
  • Loading branch information
PabstMirror committed Oct 3, 2021
2 parents efc5ddd + bce2745 commit 017cf75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/events/fnc_playerEvent.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if (_state isNotEqualTo GVAR(oldState)) then {
};

if (_newMuzzle isNotEqualTo GVAR(oldMuzzle)) then {
[QGVAR(muzzleEvent), [_newMuzzle select 2, GVAR(oldMuzzle) select 2]] call CBA_fnc_localEvent;
[QGVAR(muzzleEvent), [_unit, _newMuzzle select 2, GVAR(oldMuzzle) select 2]] call CBA_fnc_localEvent;
GVAR(oldMuzzle) = _newMuzzle;
};

Expand Down

0 comments on commit 017cf75

Please sign in to comment.