Third Person Cover Shooter  1.6
CoverShooter.AIInvestigation Class Reference

When the fighter brains enters investigation mode it passes the command of the character motor to this component. More...

Inheritance diagram for CoverShooter.AIInvestigation:
CoverShooter.AIBase

Public Member Functions

void InvestigationCheck ()
 Responds with an answer to a brain enquiry. More...
 
void ToInvestigatePosition (Vector3 position)
 Told by the brains to investigate a position. More...
 
void ToStopInvestigation ()
 Told by the brains to stop investigating. More...
 
void OnPositionUnreachable (Vector3 position)
 Notified that a position is unreachable. 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 VerifyDistance = 10
 Distance to the investigation position for it to be marked as investigated. More...
 
float VerifyHeight = 0.3f
 At which height the AI confirms the point as investigated. More...
 
float VerifyRadius = 1
 Radius of an investigation point when it's close to a cover. More...
 
float FieldOfView = 90
 Field of view when checking an investigation position. More...
 
float CoverOffset = 2
 Distance to a cover to maintain when approaching to see behind it. More...
 
float CoverSearchDistance = 3
 Cover search radius around an investigation point. More...
 

Detailed Description

When the fighter brains enters investigation mode it passes the command of the character motor to this component.

It makes the AI walk slowly towards the position the enemy was last seen at.

Member Function Documentation

◆ InvestigationCheck()

void CoverShooter.AIInvestigation.InvestigationCheck ( )

Responds with an answer to a brain enquiry.

◆ OnPositionUnreachable()

void CoverShooter.AIInvestigation.OnPositionUnreachable ( Vector3  position)

Notified that a position is unreachable.

Sets the investigation as finished if the position has been being investigated.

◆ ToInvestigatePosition()

void CoverShooter.AIInvestigation.ToInvestigatePosition ( Vector3  position)

Told by the brains to investigate a position.

◆ ToStopInvestigation()

void CoverShooter.AIInvestigation.ToStopInvestigation ( )

Told by the brains to stop investigating.

Member Data Documentation

◆ CoverOffset

float CoverShooter.AIInvestigation.CoverOffset = 2

Distance to a cover to maintain when approaching to see behind it.

◆ CoverSearchDistance

float CoverShooter.AIInvestigation.CoverSearchDistance = 3

Cover search radius around an investigation point.

Closest cover will be checked when investigating.

◆ FieldOfView

float CoverShooter.AIInvestigation.FieldOfView = 90

Field of view when checking an investigation position.

◆ VerifyDistance

float CoverShooter.AIInvestigation.VerifyDistance = 10

Distance to the investigation position for it to be marked as investigated.

◆ VerifyHeight

float CoverShooter.AIInvestigation.VerifyHeight = 0.3f

At which height the AI confirms the point as investigated.

◆ VerifyRadius

float CoverShooter.AIInvestigation.VerifyRadius = 1

Radius of an investigation point when it's close to a cover.

AI tries to verify all of it is clear of enemies when investigating. Aiming is done at the central point so keep the radius small.


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