Third Person Cover Shooter  1.6
CoverShooter.AIThreatControl Class Reference

Manually manages the active enemy of the FighterBrain component. More...

Inheritance diagram for CoverShooter.AIThreatControl:
CoverShooter.AIBase

Public Member Functions

void ToSetThreatReference (Actor reference)
 Registers an actor whose target is looked at and attacked. More...
 
void ToOverrideThreat (Actor threat)
 Notified that a threat has to be attacked and all other threats ignored. More...
 
void OnSeeDeath (Actor actor)
 A death was witnessed. More...
 
void OnSeeActor (Actor actor)
 Notified by the sight AI that an actor has entered the view. More...
 
void OnUnseeActor (Actor actor)
 Notified by the sight AI that an actor has dissappeared from the view. More...
 
void OnFriendFoundEnemy (Actor friend)
 Notified by a friend that they found a new enemy position. More...
 
- Public Member Functions inherited from CoverShooter.AIBase
void Message (string name)
 Sends a message to other components. More...
 
void Message (string name, object value)
 Sends a message to other components. More...
 

Public Attributes

float MemoryDuration = 3
 For how long the AI remembers a threat as a possible target after losing sight of it. More...
 
ThreatPriority Priority = ThreatPriority.Closest
 Mode for choosing which threat to attack. More...
 
float HealthDistance = 15
 

Detailed Description

Manually manages the active enemy of the FighterBrain component.

Member Function Documentation

◆ OnFriendFoundEnemy()

void CoverShooter.AIThreatControl.OnFriendFoundEnemy ( Actor  friend)

Notified by a friend that they found a new enemy position.

◆ OnSeeActor()

void CoverShooter.AIThreatControl.OnSeeActor ( Actor  actor)

Notified by the sight AI that an actor has entered the view.

◆ OnSeeDeath()

void CoverShooter.AIThreatControl.OnSeeDeath ( Actor  actor)

A death was witnessed.

◆ OnUnseeActor()

void CoverShooter.AIThreatControl.OnUnseeActor ( Actor  actor)

Notified by the sight AI that an actor has dissappeared from the view.

◆ ToOverrideThreat()

void CoverShooter.AIThreatControl.ToOverrideThreat ( Actor  threat)

Notified that a threat has to be attacked and all other threats ignored.

◆ ToSetThreatReference()

void CoverShooter.AIThreatControl.ToSetThreatReference ( Actor  reference)

Registers an actor whose target is looked at and attacked.

Member Data Documentation

◆ HealthDistance

float CoverShooter.AIThreatControl.HealthDistance = 15

◆ MemoryDuration

float CoverShooter.AIThreatControl.MemoryDuration = 3

For how long the AI remembers a threat as a possible target after losing sight of it.

◆ Priority

ThreatPriority CoverShooter.AIThreatControl.Priority = ThreatPriority.Closest

Mode for choosing which threat to attack.

Leader is taken from AIFormation.


The documentation for this class was generated from the following file: