many changes. includes rework of baselocation-asset storage format
This commit is contained in:
14
framework/util/functions/fn_getApprovedAssetsCfg.sqf
Normal file
14
framework/util/functions/fn_getApprovedAssetsCfg.sqf
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "../script_component.hpp"
|
||||
|
||||
private _approvedAssetsCfg = (missionConfigFile >> "ApprovedAssets");
|
||||
|
||||
if (!IS_CONFIG(_approvedAssetsCfg) || {!isClass _approvedAssetsCfg}) exitWith {
|
||||
[
|
||||
QUOTE(COMPONENT),
|
||||
"ERROR: Approved assets config not found. Check that the config is present and correctly named in the mission config file. See defines/ApprovedAssets.hpp and framework/util/functions/getApprovedAssetsCfg.sqf.",
|
||||
[]
|
||||
] call EFUNC(util,log);
|
||||
configNull;
|
||||
};
|
||||
|
||||
_approvedAssetsCfg;
|
||||
@@ -1 +1,14 @@
|
||||
(missionConfigFile >> "BattalionInfo")
|
||||
#include "../script_component.hpp"
|
||||
|
||||
private _battalionInfoCfg = (missionConfigFile >> "BattalionInfo");
|
||||
|
||||
if (!IS_CONFIG(_battalionInfoCfg) || {!isClass _battalionInfoCfg}) exitWith {
|
||||
[
|
||||
QUOTE(COMPONENT),
|
||||
"ERROR: Battalion config not found. Check that the battalion config is present and correctly named in the mission config file. See defines/BattalionInfo.hpp and framework/util/functions/getBattalionCfg.sqf.",
|
||||
[]
|
||||
] call EFUNC(util,log);
|
||||
configNull;
|
||||
};
|
||||
|
||||
_battalionInfoCfg;
|
||||
Reference in New Issue
Block a user