|
Third Person Cover Shooter
1.6
|
Regroups other brains around the AI. More...
Public Member Functions | |
| 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... | |
Public Attributes | |
| 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 | |
| virtual void | Awake () |
Properties | |
| List< Actor > | Friends [get] |
| All friends that are regrouping. More... | |
| BaseBrain | Brain [get] |
Regroups other brains around the AI.
|
protectedvirtual |
Reimplemented in CoverShooter.AIRegrouperHealth, and CoverShooter.AIRegrouperCompany.
| bool CoverShooter.AIBaseRegrouper.IsPositionTaken | ( | Vector3 | position, |
| float | threshold = 1.0f |
||
| ) |
Returns true if the given position has been taken by one of the regrouping AIs.
| void CoverShooter.AIBaseRegrouper.Regroup | ( | ) |
Finds nearby allies and tells them to regroup.
| void CoverShooter.AIBaseRegrouper.TakePosition | ( | Vector3 | value | ) |
Registers a taken position.
| float CoverShooter.AIBaseRegrouper.CallDistance = 20 |
Distance at which to search for friendly AI that will be regrouped.
| int CoverShooter.AIBaseRegrouper.Limit = 6 |
Maximum number of regrouped units.
| float CoverShooter.AIBaseRegrouper.Radius = 8 |
Maximum distance at which the regrouped actors will stand next to the regrouper.
| float CoverShooter.AIBaseRegrouper.UncoveredDuration = 8 |
Time in seconds the units will maintain their new uncovered positions before searching for better spots.
|
getprotected |
|
get |
All friends that are regrouping.