Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _mC = "SOG_Stores";
- {
- _storeCategories = (configFile >> _mC >> _x >> "storeCategories") call BIS_fnc_getCfgData;
- _storeClass = (configFile >> _mC >> _x >> "className") call BIS_fnc_getCfgData;
- _storeDir = (configFile >> _mC >> _x >> "dir") call BIS_fnc_getCfgData;
- _storeItems = (configFile >> _mC >> _x >> "storeItems") call BIS_fnc_getCfgData;
- _storeModsets = (configFile >> _mC >> _x >> "storeModsets") call BIS_fnc_getCfgData;
- _storeName = (configFile >> _mC >> _x >> "storeName") call BIS_fnc_getCfgData;
- _storePos = (configFile >> _mC >> _x >> "pos") call BIS_fnc_getCfgData;
- _store = _storeClass createVehicle [0, 0, 0];
- _store setPosATL _storePos;
- _store setDir _storeDir;
- _store allowDamage false;
- diag_log format ["ClassName: %1 Pos: %2 Dir: %3 StoreName: %4", _storeClass, _storePos, _storeDir, _storeName];
- diag_log format ["StoreCategories: %1 StoreModsets: %2", _storeCategories, _storeModsets];
- diag_log format ["StoreItems: %1", _storeItems];
- _store setVariable ["isStore", [_storeName, _storeCategories, _storeItems, _storeModsets], true];
- _store setVariable ["storeCategory", "General", true];
- _store setVariable ["storeModset", "STOCK", true];
- } forEach ((configFile >> _mC >> "stores") call BIS_fnc_getCfgData);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement