From 78e89d852c916d1dba21b1ba4590002fa955838b Mon Sep 17 00:00:00 2001 From: "Ghostrider [GRG]" Date: Fri, 6 Oct 2023 07:24:06 -0400 Subject: [PATCH] Fixed one scripting error on a specific case --- @GMS/addons/GMS/Compiles/Missions/fn_spawnMissionAssets.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/@GMS/addons/GMS/Compiles/Missions/fn_spawnMissionAssets.sqf b/@GMS/addons/GMS/Compiles/Missions/fn_spawnMissionAssets.sqf index db0547d..4591c14 100644 --- a/@GMS/addons/GMS/Compiles/Missions/fn_spawnMissionAssets.sqf +++ b/@GMS/addons/GMS/Compiles/Missions/fn_spawnMissionAssets.sqf @@ -223,7 +223,7 @@ if !(_garrisonedBuildings_BuildingPosnSystem isEqualTo []) then ["_sideArms",[]]]; */ private _userelativepos = true; -private _numberEmplacedWeaponsThisMission = [_noEmplacedWeapons] call GMSCore_fnc_getNumberFromRange; +//private _numberEmplacedWeaponsThisMission = [_noEmplacedWeapons] call GMSCore_fnc_getNumberFromRange; if (GMS_useStatic && {!(_missionEmplacedWeapons isEqualTo [])} ) then { _temp = [_coords,_missionEmplacedWeapons,_userelativepos,_difficulty,_uniforms,_headGear,_vests,_backpacks,_weaponList,_sideArms] call GMS_fnc_spawnEmplacedWeaponArray; @@ -234,7 +234,7 @@ if (GMS_useStatic && {!(_missionEmplacedWeapons isEqualTo [])} ) then //[format["_monitorInitializedMissions (288): spawned emplaced weapons for _iconMarker %1 at %2 | with count _missionInfantry = %3 | with _statics = %4",_iconMarker,diag_tickTime,count _missionInfantry, _statics]]; uisleep delayTime; } else { - if (_noEmplacedWeapons > 0) then { + if (([_noEmplacedWeapons] call GMSCore_fnc_getNumberFromRange) > 0) then { private _wepPositions = [_coords,_noEmplacedWeapons,35,50] call GMS_fnc_findPositionsAlongARadius; private _emplacedWeaponsRandom = []; {