DamagedRecord
One hit as DamagedEvent carries it: the hit, the health it took, and
where its target stood as it landed, which a view reads after a
killing blow has taken the target away.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
amount |
number |
The health asked, the zone’s multiplier in it, which can be more than the entity had. |
at |
Vector3 |
- |
data |
Readonly<Readonly<Record<string, unknown>>> | null |
What the weapon or the game’s own call attached; null for none. |
healthTaken |
number |
The health the hit took, never more than the entity had: what a thorns rule or a damage count reads. 0 on an entity with no health or one already at zero. Unreal’s TakeDamage returns the same. |
instigatorPlayer |
PlayerEntity | null |
The player behind the hit as it was judged; null for an NPC’s hit, one from no one, or once the player left. |
instigatorTeam |
string | null |
The key of the team the hit was judged for, null for none, as TeamChangedEvent names a team: a record crosses the network as plain values, and findTeamByKey turns the key back into its handle. It stays once its player left. |
source |
Entity | null |
The entity that dealt it, such as a shooter’s character; null for no one, or once it is gone. |
weapon |
string | null |
The weapon’s name as registerWeapon names it; null for damage from none. |
zone |
string | null |
The name of the entity’s HitZonesTrait zone it struck, such as "head", its multiplier already in amount; null for its body. |