Skip to main content

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.

Constructors​

MemberWhat it is
AttackParameters(float damage, Vector3 position)Creates an AttackParameters from damage and position.

Fields​

MemberWhat it is
float damageDamage the attack would deal at its current speed.
static AttackParameters EmptyA zero attack, returned when a tool isn't swinging hard enough or fails.
Vector3 positionWorld position of the attacking point (such as a weapon tip).

Used in​

Members of other types that take, return or hold a AttackParameters: