BattleForge Wiki

Action Script Example - Change Ownership

1,156pages on
this wiki
Add New Page
Talk0 Share
The following script will change the owner of a given entity immediately upon game start. When changing ownership you should set both the team and player flags or you will get odd results.
   StateName = "INIT",
      Conditions =
      Actions =
         EntityTeamSet {
            Tag = "gift",
            Team = "tm_Team1"
            Tag = "gift",
            Player = "pl_Player1"
  • "gift" is the tag given to entity you are giving to a player.
  • "tm_Team1" and "pl_Player" are the names of the team and player, respectively.
  • 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.