Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

DiedRecord

What DiedEvent carries: the credit of the hit that took the entity to zero, all null for no hit, and why it died.

Property Type Description
cause DeathCause -
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.