Skip to content

Stream:Death

cooltrain7 edited this page Mar 5, 2023 · 1 revision

Death

Death is a character event that is fired whenever a character dies.

Additional Info

Team Kills

A characters death is a team kill if both the attacker_team_id and the team_id are the same ID.

Suicide

A characters death is a suicide if both the attacker_character_id and the character_id are the same ID.

Payload Content

As with all Census payloads all types are given as strings, and can be cast to the following base types.

Name Type Description
event_name string The name of the Payload, i.e Death
attacker_character_id uint_64 The character who killed this character
attacker_fire_mode_id uint_32 The fire mode of the attacker
attacker_loadout_id uint_32 The loadout (class) of the attacker
attacker_team_id uint_32 The team (faction) of the attacker
attacker_vehicle_id uint_32 The vehicle of the attacker
attacker_weapon_id uint_32 The weapon of the attacker
character_id uint_64 The character who was killed
character_loadout_id uint_32 The loadout (class) the character was when they died
team_id uint_32 The team (faction) the character was when they died
is_critical bool Unknown/unused, always 0
is_headshot bool If the character was killed by a headshot
world_id uint_32 The World (Server) the event was triggered from
zone_id uint_32 The Zone (Continent) the event was triggered from
timestamp uint_64 The UTC unix timestamp the event triggered

Example

{
    "payload": {                 
	"attacker_character_id": "0000000000000000000",
	"attacker_fire_mode_id": "120",
	"attacker_loadout_id": "6",
	"attacker_team_id": "2",
	"attacker_vehicle_id": "0",
	"attacker_weapon_id": "78",
	"character_id": "0000000000000000000",
	"character_loadout_id": "12",
	"event_name": "Death",
	"is_critical": "0",
	"is_headshot": "1",
	"team_id": "3",
	"timestamp": "1678010335",
	"world_id": "1",
	"zone_id": "344"
    },
    "service": "event",
    "type": "serviceMessage"
}
Clone this wiki locally