ColonelKernel 4 Posted August 24, 2017 Hi. How can I get the "in-game" name of objects? (for example instead of the long and weird name you get by "typeOf" for HEMTT you actually get "HEMTT") Edit: I just realized it's called "displayName" of a unit! Share this post Link to post Share on other sites
ColonelKernel 4 Posted August 24, 2017 I thought it was an easy and trivial question! LOL Share this post Link to post Share on other sites
palatine 24 Posted August 24, 2017 Hey bro, try this :) getText (configFile >> "cfgVehicles" >> typeOf xXxXx >> "displayName") 2 Share this post Link to post Share on other sites
Grumpy Old Man 3545 Posted August 24, 2017 There's only one way for this, like palatine said: getText (configFile >> "cfgVehicles" >> typeOf vehicle player >> "displayName"); Will return "HEMTT" when inside a HEMTT. Using the config browser lets you dig through various stuff inside the config, mostly things that can't be accessed other than using getText/getNumber or getArray to read stuff from the config. Cheers 2 1 Share this post Link to post Share on other sites
ColonelKernel 4 Posted August 24, 2017 7 hours ago, palatine said: Hey bro, try this :) getText (configFile >> "cfgVehicles" >> typeOf xXxXx >> "displayName") Thanks bro! 6 hours ago, Grumpy Old Man said: There's only one way for this, like palatine said: getText (configFile >> "cfgVehicles" >> typeOf vehicle player >> "displayName"); Will return "HEMTT" when inside a HEMTT. Using the config browser lets you dig through various stuff inside the config, mostly things that can't be accessed other than using getText/getNumber or getArray to read stuff from the config. Cheers Thanks! Share this post Link to post Share on other sites