Vixen
caa30e12
csharp
public sealed class TeamPerceptionFilter

Perceives by side.

Read the guide page for this →

Remarks

The shipped reading of the team byte: same number means friendly, a different number means hostile, and one reserved number means neutral. That covers a shooter, a stealth game and an RTS; a game whose factions are a matrix uses Where and looks its own table up.

⚠ Damage is always allowed through. An agent shot by its own side has to notice, or friendly fire is invisible to the AI and a squad walks through its own grenades. That is a rule about what damage is rather than a configurable, so it is not a field.

Fields and properties (4)

  • public bool Friendly

    Whether it perceives its own side.

  • public bool Hostile

    Whether it perceives other sides.

  • public bool Neutral

    Whether it perceives the neutral side.

  • public byte NeutralTeam

    The team number that means "nobody's".

Methods (1)

Used by (1)

  • PerceptionFiltersVixen.Ai.Perception