- Description
- The following condition will trigger when any squad of the specified player gets in range of a certain entity or point. The second condition is the inverse situation.
- Code
State { StateName = "INIT", OnOneTimeEvent { Conditions = { PlayerSquadIsInRange { Player = "pl_Player1", TargetTag = "destination1", Range = 10 }, PlayerSquadIsNotInRange { Player = "pl_Player1", TargetTag = "destination2", Range = 10 }, }, Actions = { <do stuff> }, }; };
- Notes
- "destination" is the tag given to the entity or point at the center of the trigger radius.
- Range defines the radius around the target that will cause the condition to trigger. It is specified in meters.
- 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.
Battleforge has been revived by a group of passionate players and developers under the name Skylords Reborn
It is a fully functional, community-made, non-profit and completely free-to-play relaunch of the game. The relaunch has been worked on for several years, and receives regular updates.
The new Wiki can be found here: Skylords Reborn Wiki Page
.