Overview
Team Relations Component allows to define relations between different Teams.
Relations are used for example in AI perception logic to select target actor or when attacking actors, to apply damage only to hostile actors.
There are 3 types of relations - Neutral / Friendly / Hostile.
Teams are identified by gameplay tags stored in file DCSTags_Base, this is where you could add new teams.
Relations can be defined in details panel of the component.
To check or modify relations use these functions.
There is also a helper function in library which allows to check if target actor is enemy to querier
Usage example where apply hit logic will pass only if attacked actor is enemy.