Fandom

BattleForge Wiki

Action Script Example - Mission Failure

1,156pages on
this wiki
Add New Page
Talk0 Share
Description
The following script will immediately end the game with a failure screen. Combine it with a condition to define lose conditions.
Code
State
{
   StateName = "INIT",
   OnOneTimeEvent
   {
      Conditions =
      {
      },
      Actions =
      {
         PlayerGameOver
         {
            Player = "ALL",
            TargetTag = "anytag",
            Message = "Message goes here"
         }
      }
   };
};
Notes
  • Player can be a specific player or "ALL" players.
  • TargetTag need to be some entity on the map. It may be the position the camera zooms to when you lose.
  • Message, not sure what this is used for. I don't remember seeing the message printed anywhere.
  • 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.