AttackParameters
A struct in Root.Township, Alta.Intelligence.
An attack a target is making: how much damage it would do and where it is. AI reads these from Target.Attacks to react to incoming hits.
- Listed in Creatures and AI
Constructors
| Member | What it is |
|---|---|
AttackParameters(float damage, Vector3 position) | Creates an AttackParameters from damage and position. |
Fields
| Member | What it is |
|---|---|
float damage | Damage the attack would deal at its current speed. |
static AttackParameters Empty | A zero attack, returned when a tool isn't swinging hard enough or fails. |
Vector3 position | World position of the attacking point (such as a weapon tip). |
Used in
Members of other types that take, return or hold a AttackParameters: