From b791137b426f935d2e803716dc49c20ee2a88ae4 Mon Sep 17 00:00:00 2001 From: He-Man Date: Wed, 24 Aug 2016 21:20:38 +0200 Subject: [PATCH] Update EPOCH_worldObjectType.sqf Added private Variables, so external scripts calling this script can use "_return" as variable without problems example EPOCH_lootTrash.sqf: _return = false; _getWorldTypes = [str(_x), _inputWorldTypes] call EPOCH_worldObjectType; _return <--- Is an array!!! --- Sources/epoch_code/compile/functions/EPOCH_worldObjectType.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/epoch_code/compile/functions/EPOCH_worldObjectType.sqf b/Sources/epoch_code/compile/functions/EPOCH_worldObjectType.sqf index 1c125229..c2a0f175 100644 --- a/Sources/epoch_code/compile/functions/EPOCH_worldObjectType.sqf +++ b/Sources/epoch_code/compile/functions/EPOCH_worldObjectType.sqf @@ -22,6 +22,7 @@ Returns: BOOL or ARRAY of BOOLs */ +private ["_str","_return","_config","_findStart","_start","_end","_p3dName","_finalConfig","_checkType"]; params ["_str","_checkType"]; _return = false; _config = 'CfgEpochClient' call EPOCH_returnConfig;