Skip to content

Commit

Permalink
Update fnc_addPlayerEventHandler.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Oct 15, 2020
1 parent 92dbf3b commit 5b60bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/events/fnc_addPlayerEventHandler.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private _id = switch (_type) do {
case "turretweapon": {
if (_applyRetroactively) then {
private _vehicle = vehicle GVAR(oldUnit);
private _turret = _vehicle turretUnit GVAR(oldUnit);
private _turret = _vehicle unitTurret GVAR(oldUnit);
[GVAR(oldUnit), _vehicle currentWeaponTurret _turret, ""] call _function;
};
[QGVAR(turretWeaponEvent), _function] call CBA_fnc_addEventHandler // return id
Expand Down Expand Up @@ -98,7 +98,7 @@ private _id = switch (_type) do {
case "turret": {
if (_applyRetroactively) then {
private _vehicle = vehicle GVAR(oldUnit);
private _turret = _vehicle turretUnit GVAR(oldUnit);
private _turret = _vehicle unitTurret GVAR(oldUnit);
[GVAR(oldUnit), _turret, []] call _function;
};
[QGVAR(turretEvent), _function] call CBA_fnc_addEventHandler // return id
Expand Down

0 comments on commit 5b60bce

Please sign in to comment.