From daaa4a321a7005b2c123d7ccd35981a1b084c3c3 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sun, 14 Jun 2015 09:51:52 -0500 Subject: [PATCH] script for for finding buildings without loot --- Tools/SQF/getBuildingsNotSetupYet.sqf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Tools/SQF/getBuildingsNotSetupYet.sqf diff --git a/Tools/SQF/getBuildingsNotSetupYet.sqf b/Tools/SQF/getBuildingsNotSetupYet.sqf new file mode 100644 index 00000000..d2f9cc46 --- /dev/null +++ b/Tools/SQF/getBuildingsNotSetupYet.sqf @@ -0,0 +1,21 @@ + +EP_notSetup = []; +EP_setup = []; + +_all = nearestObjects [player, ["building"], 200]; +{ + _typeOf = typeof _x; + + + if !(isClass(configfile >> "CfgBuildingLootPos" >> _typeOf)) then { + if !(_typeOf in EP_notSetup) then { + EP_notSetup pushBack _typeOf; + }; + } else { + if !(_typeOf in EP_notSetup) then { + EP_setup pushBack _typeOf; + }; + } + + +} foreach _all; \ No newline at end of file