Epoch/Tools/SQF/getBuildingsNotSetupYet.sqf

21 lines
375 B
Plaintext
Raw Normal View History

EP_notSetup = [];
EP_setup = [];
2015-06-22 17:24:11 +00:00
_all = nearestObjects [player, ["building"], 20000];
{
_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;