juleshuxley 9 Posted October 31, 2020 I see red, green and blue items, some of them at indentation levels. I can use getText in a script to retrieve red items. getText when used on a green item just returns an empty string. Blue items can always be retrieved, but getArray has to be used. What do the colors and indentation mean? And how do I retrieve a green item? I'm guessing it's to do with inheritance but I'd appreciate an encompassing answer. And the best way to get a green item. Currently trying to get reloadTime for a weapon and all I get is an empty string: getText(configfile >> "CfgWeapons" >> "CUP_optic_LeupoldMk4_20x40_LRT" >> "reloadTime"); // "" Share this post Link to post Share on other sites
pierremgi 4881 Posted October 31, 2020 Why do you want to reload an optic? If any (by inheritance, but it's useless), reload time is a number, so use getNumber instead of getText. 1 Share this post Link to post Share on other sites
da12thMonkey 1943 Posted October 31, 2020 The colours correspond to whether the config parameter is a string, number or array So presumably you use getNumber to retrieve the green ones 1 Share this post Link to post Share on other sites