Third Person Cover Shooter  1.6
CoverShooter.AIRegrouperHealth Class Reference

Triggers a regroup when health falls below a certain threshold. More...

Inheritance diagram for CoverShooter.AIRegrouperHealth:
CoverShooter.AIBaseRegrouper CoverShooter.AIBase

Public Attributes

float Health = 0.4f
 Fraction of health that triggers a regroup. More...
 
- Public Attributes inherited from CoverShooter.AIBaseRegrouper
float Radius = 8
 Maximum distance at which the regrouped actors will stand next to the regrouper. More...
 
float UncoveredDuration = 8
 Time in seconds the units will maintain their new uncovered positions before searching for better spots. More...
 
float CallDistance = 20
 Distance at which to search for friendly AI that will be regrouped. More...
 
int Limit = 6
 Maximum number of regrouped units. More...
 

Protected Member Functions

override void Awake ()
 

Additional Inherited Members

- Public Member Functions inherited from CoverShooter.AIBaseRegrouper
void TakePosition (Vector3 value)
 Registers a taken position. More...
 
bool IsPositionTaken (Vector3 position, float threshold=1.0f)
 Returns true if the given position has been taken by one of the regrouping AIs. More...
 
void Regroup ()
 Finds nearby allies and tells them to regroup. 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...
 
- Properties inherited from CoverShooter.AIBaseRegrouper
List< ActorFriends [get]
 All friends that are regrouping. More...
 
BaseBrain Brain [get]
 

Detailed Description

Triggers a regroup when health falls below a certain threshold.

Member Function Documentation

◆ Awake()

override void CoverShooter.AIRegrouperHealth.Awake ( )
protectedvirtual

Reimplemented from CoverShooter.AIBaseRegrouper.

Member Data Documentation

◆ Health

float CoverShooter.AIRegrouperHealth.Health = 0.4f

Fraction of health that triggers a regroup.


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