Third Person Cover Shooter  1.6
CoverShooter.AIFlee Class Reference

If AI becomes scared they flee towards a flee zone, ignoring everything else. More...

Inheritance diagram for CoverShooter.AIFlee:
CoverShooter.AIBase

Public Member Functions

void OnThreatPosition (Vector3 position)
 Notified by the brains of a new threat position. More...
 
void ToStartFleeing (Vector3 threatPosition)
 Told by the brains to flee away from a threat position. More...
 
void ToStopFleeing ()
 Told by the brains to stop fleeing. 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 AvoidDistance = 10
 Distance to the enemy at which the AI changes their flee direction. More...
 

Detailed Description

If AI becomes scared they flee towards a flee zone, ignoring everything else.

Member Function Documentation

◆ OnThreatPosition()

void CoverShooter.AIFlee.OnThreatPosition ( Vector3  position)

Notified by the brains of a new threat position.

Parameters
position

◆ ToStartFleeing()

void CoverShooter.AIFlee.ToStartFleeing ( Vector3  threatPosition)

Told by the brains to flee away from a threat position.

Parameters
position

◆ ToStopFleeing()

void CoverShooter.AIFlee.ToStopFleeing ( )

Told by the brains to stop fleeing.

Member Data Documentation

◆ AvoidDistance

float CoverShooter.AIFlee.AvoidDistance = 10

Distance to the enemy at which the AI changes their flee direction.


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