johnnyboy 3739 Posted June 19, 2019 I would like to get the name for buildings shown in object selection tool in editor. Example: This building object type: "Land_i_House_Big_01_V1_F" has a clean name shown in editor as "House (Large,White)". How do I get the clean text name for any building? This will allow creation of situation specific chat messages for my AI CQB Move script: "Clear building "House (Large,White)" 100m to the south." Share this post Link to post Share on other sites
beno_83au 1362 Posted June 19, 2019 getText (configfile >> "CfgVehicles" >> _building >> "DisplayName") So, getText (configfile >> "CfgVehicles" >> "Land_i_House_Big_02_V1_F" >> "DisplayName") is returning "House (Big, White)". 3 1 Share this post Link to post Share on other sites
pierremgi 4736 Posted June 19, 2019 A little tool? A touch of class module here. (see 3rd video) 2 Share this post Link to post Share on other sites
froggyluv 2129 Posted June 19, 2019 _building = cursortarget; _name = getText (configFile >> "CfgVehicles" >> (typeof _building) >> "displayName"); copytoclipboard str _name; Returns: "House (Large, Pink and Fabulous)" Edit:Ninja'ed! 1 1 1 Share this post Link to post Share on other sites
beno_83au 1362 Posted June 19, 2019 10 minutes ago, froggyluv said: Edit:Ninja'ed! The quick and the dead around these parts. 2 Share this post Link to post Share on other sites
johnnyboy 3739 Posted June 19, 2019 1 hour ago, pierremgi said: A little tool? Are you referring to me, @froggyluv, or @beno_83au? Whoever said that is a dirty liar! 1 2 Share this post Link to post Share on other sites
beno_83au 1362 Posted June 19, 2019 😬 *checks nervously 1 Share this post Link to post Share on other sites