If AI becomes scared they flee towards a flee zone, ignoring everything else.
More...
|
float | AvoidDistance = 10 |
| Distance to the enemy at which the AI changes their flee direction. More...
|
|
If AI becomes scared they flee towards a flee zone, ignoring everything else.
◆ OnThreatPosition()
void CoverShooter.AIFlee.OnThreatPosition |
( |
Vector3 |
position | ) |
|
Notified by the brains of a new threat position.
- Parameters
-
◆ ToStartFleeing()
void CoverShooter.AIFlee.ToStartFleeing |
( |
Vector3 |
threatPosition | ) |
|
Told by the brains to flee away from a threat position.
- Parameters
-
◆ ToStopFleeing()
void CoverShooter.AIFlee.ToStopFleeing |
( |
| ) |
|
Told by the brains to stop fleeing.
◆ 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:
- E:/Projects/tpcs/Assets/ThirdPersonCoverShooter/Scripts/AI/Controllers/AIFlee.cs