Jump to content
johnnyboy

Config property to determine how tough a building is?

Recommended Posts

My giants can destroy buildings by pounding on them with a big club.  I'd like to calculate how many strikes it takes to destroy a building, i.e., a tent should be one, a tin shack should be 2 or 3, a wood house maybe 10, and large buildings more (or maybe giant decides they are too big and strong so he will not attack it).

 

I'm looking for a building config property that I can use to drive my logic, and don't see what I need.  Anybody know?

 

Its not the "Damage" property...as this command...

configProperties [configFile >> "CfgVehicles" >> ("Land_House_Small_03_F") >> "Damage"];

... returns this (which is useless for my purpose):

[bin\config.bin/CfgVehicles/Land_House_Small_03_F/Damage/tex,bin\config.bin/CfgVehicles/Land_House_Small_03_F/Damage/mat]

 

Share this post


Link to post
Share on other sites

Armor? I'm not sure myself, because my Arma modding skills are still stuck in 2001, but yeah, in OFP/CWA it was armor.

  • Like 3

Share this post


Link to post
Share on other sites

Sure! armor is a good reference:

getNumber (configFile / "cfgVehicles" / "Land_House_Small_03_F" / "armor")         // 750

getNumber (configFile / "cfgVehicles" / "Land_Shed_01_F" / "armor")                      // 100

getNumber (configFile / "cfgVehicles" / "Land_House_Native_02_F" / "armor")        // 200

getNumber (configFile / "cfgVehicles" / "Land_i_House_Big_02_V3_F" / "armor")    // 2000

 

 

 

  • Like 1

Share this post


Link to post
Share on other sites

I used the armour value to pre-plan the strongest exile bases when I used to play that mode. First thing I thought of when I saw this thread. 

  • Like 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

×