Damage to a Building

Status
Not open for further replies.
Level 6
Joined
Apr 23, 2011
Messages
182
Hi, Is there a way of change the damage deal to a ALL buildings under construction.

I have Bribe GUI Damage Engine.

PD* Just under construction. When they are finish set the dmg to normal.
 
You can add the building to a unit group when construction starts, and remove it when the construction ends.
When a unit is damaged, check if the attacked unit is in that group. If it is, modify damage.

  • Add Structure
    • Events
      • Unit - A unit Begins construction
    • Conditions
    • Actions
      • Unit Group - Add (Triggering unit) to ConstructingStructures
  • Remove Structure
    • Events
      • Unit - A unit Finishes construction
    • Conditions
    • Actions
      • Unit Group - Remove (Triggering unit) from ConstructingStructures
 
You can add the building to a unit group when construction starts, and remove it when the construction ends.
When a unit is damaged, check if the attacked unit is in that group. If it is, modify damage.

Um okey going to try it^^
Can that cause problems in the long period? I mean that if there are a lot of building = (300 aprox) the damage engine will bug?
 
Status
Not open for further replies.
Back
Top