Skip to main content

KilledData

A class in Root.Township, Alta.PlayerStates.

What killed a player, built from the killing hit: the tool, who held it and the killing player if there was one.

Constructors​

MemberWhat it is
KilledData(DamageData killingHit)Creates a KilledData from killingHit.

Fields​

MemberWhat it is
UserInfo killerPlayerAPI user info of the player who held the weapon, or null if no player did.
DamageSource sourceThe hit's damage source, or Unknown if there was no hit.
string toolWielderName of the object that wielded the tool, for impact hits with a wielder.
string usedToolName of the tool used, for hits made with a tool.