csharp
public sealed class TeamPerceptionFilterPerceives by side.
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 FriendlyWhether it perceives its own side.
public bool HostileWhether it perceives other sides.
public bool NeutralWhether it perceives the neutral side.
public byte NeutralTeamThe team number that means "nobody's".
Methods (1)
public bool CanPerceive(in PerceptionParticipant listener, in PerceptionParticipant source, AiSense sense)Whether this listener may perceive this source through this sense.
Used by (1)
- PerceptionFiltersVixen.Ai.Perception