Fandom

BattleForge Wiki

Condition Script Example - Building Destruction

1,156pages on
this wiki
Add New Page
Talk0 Share
Description
The following condition will trigger upon the destruction of target building.
Code
State
{
   StateName = "INIT",
   OnOneTimeEvent
   {
      Conditions =
      {
         BuildingIsDestroyed
         {
            Tag = "building"
         }
      },
      Actions =
      {
         <do stuff>
      },
   };
};
Notes
  • "building" is the tag given to the building that will trigger this event on death.
  • You will need to add the tag from the Entity Properties window.
  • You may use any tag name you wish.
  • You can add any Script Action in the action section to do something useful with this script.


.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.