Jump to content
johnnyboy

get building text name displayed in eden object selector

Recommended Posts

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
getText (configfile >> "CfgVehicles" >> _building >> "DisplayName")

So, getText (configfile >> "CfgVehicles" >> "Land_i_House_Big_02_V1_F" >> "DisplayName")  is returning "House (Big, White)".

  • Like 3
  • Thanks 1

Share this post


Link to post
Share on other sites

_building = cursortarget;

_name = getText (configFile >> "CfgVehicles" >> (typeof _building) >> "displayName");

copytoclipboard str _name;

Returns: "House (Large, Pink and Fabulous)"

 

Edit:Ninja'ed!

  • Like 1
  • Thanks 1
  • Haha 1

Share this post


Link to post
Share on other sites
10 minutes ago, froggyluv said:

 

Edit:Ninja'ed!

 

The quick and the dead around these parts. 

  • Like 2

Share this post


Link to post
Share on other sites
1 hour ago, pierremgi said:

A little tool?

Are you referring to me, @froggyluv, or @beno_83au?  Whoever said that is a dirty liar!

  • Like 1
  • Haha 2

Share this post


Link to post
Share on other sites

😬 

*checks nervously

  • Haha 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×