Set Team By Lance Spawner Guid Result

The SetTeamByLanceSpawnerGuid result sets the team of units by their LanceSpawnerGameLogic Guid.

This can be used to change the team of mechs, turrets or any other unit that spawns from a LanceSpawnerGameLogic.

Properties

PropertyRequiredDefaultDetails
TypetrueSetTeamByLanceSpawnerGuid-
Teamtrue-Team to change units to.

Supported teams are: Player1, Player2, Employer, Target, TargetAlly, NeutralToAll, HostileToAll, World
LanceSpawnerGuidtrue-Guid of the LanceSpawner
AlertLancefalsetrueSpecifies if the lance should be on alert after they change team. Certain behaviours in the AI depend on a lance being in alert mode, such as the main combat behaviours and hunting last seen enemies
ApplyTagsfalse-Tags to add to units when they change team

Example

{
"Type": "SetTeamByLanceSpawnerGuid",
"Team": "Target",
"LanceSpawnerGuid": "a363b6b5-62f7-4290-a8a5-1f744a43109e",
"AlertLance": true,
"ApplyTags": ["defected_lance"]
}