From 00e87676fee9b788b9e4fd9a0f60bbf08af4e9ca Mon Sep 17 00:00:00 2001 From: Andreas Brostrom Date: Tue, 2 Feb 2021 20:09:36 +0100 Subject: [PATCH] Fixed isplayer error --- cScripts/CavFnc/functions/gear/fn_gear_setupRadios.sqf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cScripts/CavFnc/functions/gear/fn_gear_setupRadios.sqf b/cScripts/CavFnc/functions/gear/fn_gear_setupRadios.sqf index 91114ef3f..44cf91a6d 100644 --- a/cScripts/CavFnc/functions/gear/fn_gear_setupRadios.sqf +++ b/cScripts/CavFnc/functions/gear/fn_gear_setupRadios.sqf @@ -1,5 +1,4 @@ #include "..\script_component.hpp" -params [["_unit", objNull]]; /* * Author: BaerMitUmlaut, CPL.Brostrom.A * This function setup radio preset and apply a set radio channel to them on server and player. @@ -14,6 +13,8 @@ params [["_unit", objNull]]; * [] call cScripts_fnc_gear_setupRadios * */ + +params [["_unit", objNull, [objNull]]]; if !(EGVAR(patches,usesACRE)) exitWith {}; if (count allMissionObjects "acre_api_basicMissionSetup" > 0) exitWith {}; @@ -41,7 +42,7 @@ if !(_lrChannels isEqualType []) exitWith {["Radio array have not been setup cor */ // Set radio channel -if (isPlayer) then { +if (isPlayer _unit) then { if (EGVAR(Settings,setRadio)) then { [_unit] call FUNC(setRadioChannel); #ifdef DEBUG_MODE