Third Person Cover Shooter
1.6
|
Continuously updates a list of visible actors. More...
Public Member Functions | |
void | OnNoThreat () |
Notified that there is no longer a threat. More... | |
void | DoubleCheck (Actor actor) |
Checks if the given actor is no longer visible. More... | |
bool | IsInDarkness (Actor actor) |
Checks if the given actor is in darkness. More... | |
bool | CheckVisibility (Actor actor) |
Checks if the given actor is field of view. 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 | Distance = 25 |
Distance for AI to see objects in the world. More... | |
float | ObstacleIgnoreDistance = 1 |
Distance at which the AI ignores closer obstacles preventing it from seeing something. More... | |
float | FieldOfView = 160 |
Field of sight to notice changes in the world. More... | |
float | UpdateDelay = 0.1f |
Time in seconds between each visibility update. More... | |
bool | DebugFOV = false |
Should a debug graphic be drawn to show the field of view. More... | |
Continuously updates a list of visible actors.
Without this component the AI is blind.
bool CoverShooter.AISight.CheckVisibility | ( | Actor | actor | ) |
Checks if the given actor is field of view.
Result is immediate, does not execute any events or messages.
void CoverShooter.AISight.DoubleCheck | ( | Actor | actor | ) |
Checks if the given actor is no longer visible.
bool CoverShooter.AISight.IsInDarkness | ( | Actor | actor | ) |
Checks if the given actor is in darkness.
void CoverShooter.AISight.OnNoThreat | ( | ) |
Notified that there is no longer a threat.
bool CoverShooter.AISight.DebugFOV = false |
Should a debug graphic be drawn to show the field of view.
float CoverShooter.AISight.Distance = 25 |
Distance for AI to see objects in the world.
float CoverShooter.AISight.FieldOfView = 160 |
Field of sight to notice changes in the world.
float CoverShooter.AISight.ObstacleIgnoreDistance = 1 |
Distance at which the AI ignores closer obstacles preventing it from seeing something.
float CoverShooter.AISight.UpdateDelay = 0.1f |
Time in seconds between each visibility update.