Home   Help Search Login Register  

Author Topic: Colored buildings while building?  (Read 1252 times)

0 Members and 1 Guest are viewing this topic.

Offline i0n0s

  • Former Staff
  • ****
Colored buildings while building?
« on: 09 Oct 2008, 17:20:12 »
Does anyone knows how the the building you're placing in the construction dialog get coloured red or green?
While looking through the code, I wasn't able to locate the line.

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Colored buildings while building?
« Reply #1 on: 09 Oct 2008, 17:31:46 »
There is a separate red and green object (p3d) for each building in warfare, rather than dynamically colouring the building object :weeping:.

e.g. three objects for the bunker:
cti_bunker
cti_bunker_red
cti_bunker_green
« Last Edit: 09 Oct 2008, 17:33:40 by Spooner »
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Colored buildings while building?
« Reply #2 on: 09 Oct 2008, 18:08:17 »
They are all listed in the cfgVehicles tree in the OFPEC COMREF, complete with pretty pictures.

Some models do not match what they are supposed to be, this is an original mistake by whoever made the Warfare stuff, it is not a mixup with the pictures.


Planck
« Last Edit: 04 Jan 2009, 01:44:38 by Planck »
I know a little about a lot, and a lot about a little.