mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
script for for finding buildings without loot
This commit is contained in:
parent
0bfcdd4aca
commit
daaa4a321a
21
Tools/SQF/getBuildingsNotSetupYet.sqf
Normal file
21
Tools/SQF/getBuildingsNotSetupYet.sqf
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user