Fandom

BattleForge Wiki

Action Script Example - Health Add

1,156pages on
this wiki
Add New Page
Talk0 Share
Description
The following script will add percentage of the target's max health to its current health.
Code
State
{
   StateName = "INIT",
   OnOneTimeEvent
   {
      Conditions =
      {
      },
      Actions =
      {
         EntityHealthAdd{
            Tag = "creep",
            Percent = 25
         }
      }
   };
};
Notes
  • "creep" is the tag given to entity you want to add the health to.
  • Percent is the amount of health you want to add. Believed to be the percent of the targets max health.
  • 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 Event Condition in the condition section to force this script to only trigger when the condition is true.


.

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.