I know how to get value of some params from config file:
Like this:
_unitTypes = []+ getArray (configFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
_lootType = configFile >> "CfgVehicles" >> _type >> "zombieLoot";
_array = getArray (configFile >> "cfgLoot" >> getText(_lootType));
But how can i get class name?
Tried this as test but got nothing:
_type = missionConfigFile >> "CfgVehicles" >> "z_hunter";
_agent = createAgent [_type, _originalPos, [], 10, "NONE"];
Like this:
_unitTypes = []+ getArray (configFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
_lootType = configFile >> "CfgVehicles" >> _type >> "zombieLoot";
_array = getArray (configFile >> "cfgLoot" >> getText(_lootType));
But how can i get class name?
Tried this as test but got nothing:
_type = missionConfigFile >> "CfgVehicles" >> "z_hunter";
_agent = createAgent [_type, _originalPos, [], 10, "NONE"];