sprucewaine 1 Posted July 6, 2018 _inf = "((configName _x) isKindOf 'rhsusf_infantry_usmc_base')" configClasses (configFile >> "CfgVehicles"); costs = []; publicVariable "costs"; {costs = costs + [getText (_x >> 'displayName'),0.001]}forEach _inf; [ myCurator, costs] call BIS_fnc_curatorObjectRegisteredTable; I know 'displayName' isn't right, this was just my last attempt at it before giving up. How do i make it so that it doesn't return the whole path to the config entry? I still hate this method of registering costs to curator objects as now it will be a flat rate for what ever category of isKingOf a mod will have. side note- I wish i could use the default costs that account for the units equipment, But still easily white list the entries that i want the curator to be able to spawn using mod config paths. Makes it so much easier than having to do everything by hand, also allows a ton of customization as eventually it would be cool to make your Zeus faction select able, and have it automatically get all the units for it. Share this post Link to post Share on other sites
gc8 970 Posted July 6, 2018 I think you need to call publicvariable after you have filled the costs array. anyway, not sure if I get the question but to get short config use https://community.bistudio.com/wiki/configName 1 Share this post Link to post Share on other sites