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

HitCredit

Who a hit or a death credits: the entity that dealt it, and the player and the team its hit was judged by, as dealDamage judged it. So a grenade that kills after its thrower switched teams credits the team the thrower threw it for, and a kill whose character is gone still names the thrower. Unreal’s damage carries its instigating controller the same way.

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