We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 723ab0f commit ffd0465Copy full SHA for ffd0465
1 file changed
addons/recorder/fnc_eh_firedMan.sqf
@@ -46,8 +46,8 @@ params ["_firer", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_project
46
private _controlledUnit = missionNamespace getVariable ["bis_fnc_moduleRemoteControl_unit", objNull];
47
if (!isNull _controlledUnit && {_controlledUnit getVariable ["BIS_fnc_moduleRemoteControl_owner", objNull] isEqualTo _firer}) then {
48
_firer = _controlledUnit;
49
- _vehicle = vehicle _controlledUnit;
50
- if (_vehicle isEqualTo _controlledUnit) then { _vehicle = objNull; };
+ private _controlledVehicle = vehicle _controlledUnit;
+ _vehicle = if (_controlledVehicle isEqualTo _controlledUnit) then {objNull} else {_controlledVehicle};
51
};
52
53
// not sent in ACE Throwing events
0 commit comments