mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
test to fix case sensitivity with building spawn loot
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
private["_obj","_type","_config","_positions","_iPos","_nearBy","_itemType","_itemTypes","_itemChances","_lootChance","_weights","_cntWeights","_index"];
|
private["_obj","_type","_config","_positions","_iPos","_nearBy","_itemType","_itemTypes","_itemChances","_lootChance","_weights","_cntWeights","_index"];
|
||||||
|
|
||||||
_obj = _this select 0;
|
_obj = _this select 0;
|
||||||
_type = typeOf _obj;
|
|
||||||
|
// experiment to get true classname to prevent issues with case
|
||||||
|
_type = configName (configFile >> "CfgVehicles" >> (typeOf _obj));
|
||||||
|
|
||||||
diag_log format["Spawning loot for: %1", _type];
|
diag_log format["Spawning loot for: %1", _type];
|
||||||
_config = configFile >> "CfgBuildingLoot" >> _type;
|
_config = configFile >> "CfgBuildingLoot" >> _type;
|
||||||
_positions = [] + getArray (_config >> "lootPos");
|
_positions = [] + getArray (_config >> "lootPos");
|
||||||
|
|||||||
Reference in New Issue
Block a user