To make it easy for you to add teams or factions to your game, and give them specific attributes, the Team system has been provided.

A Team is a Scriptable Object that is created and stored in your project's Assets folder. You can assign it to Game Agents (player or AI) and use it in any script to represent a specific team.

Creating A Team

To create a new team:

  1. Right click in the Project tab and select Create > VSX > Team

  2. Rename it to whatever you wish

  3. Set the Hostile Teams list with all the other teams that this team is hostile to

  4. Drag it into the Team field in the inspector of any Game Agent (player or AI)


You can set the team of any Trackable object.

When a Game Agent enters a vehicle, the Game Agent Vehicle Setup Manager automatically sets the Selectable Teams on the weapon target selector to the teams that are hostile to that game agent, making targets for hostile teams appear red.

Last updated