Menu
Sign inDownload

Game events

The events add-ons get from each game.

What an add-on gets with events.game (on_event(event)) and events.journal (on_journal(event)), per game. Each game's engine decides its events; nothing maps one game's events onto another's, so check api.active_game["id"] (or on_game) before you rely on a type. New types can appear in any version: ignore ones you don't know.

Every game event arrives as:

{"type": "vehicle.missile_warning", "data": {...}, "ts": 1800000000.0}

data depends on the event (often empty). ts is when Comms Array saw it, in seconds.

Star Citizen (starcitizen)

From the game's telemetry feed.

typemeaning
player.downed, player.deadyour character was downed, or died
player.recoveredback up after being downed (revived, or healed)
player.respawn, player.spawnrespawned after dying, or spawned in
seat.enter, seat.leaveyou sat down in, or left, a seat
vehicle.changedyou boarded, left or switched ships
vehicle.shields_downshields below 5% (fires again only after they're back above 25%)
vehicle.hull_criticalhull below 25%
vehicle.warninga warning light turned major: pwr, wpn, thr, shld, cool, qdrv, radr, prox, hit, misl
vehicle.under_firethe ship's HIT light lit (at most once every 10 s)
vehicle.missile_warningthe ship's MISL light lit (at most once every 5 s)
vehicle.gear, vehicle.landed, vehicle.takeofflanding gear and landings
vehicle.quantum_spool, vehicle.quantum_travel, vehicle.quantum_exitquantum travel
vehicle.disabled, vehicle.destroyed, vehicle.damaged, vehicle.restoredthe ship's condition changed (worked out from its power and hull)
wallet.changeyour aUEC changed

Log events (events.journal)

Read from the game's Game.log. Never chat, and never other players' names: the engine drops chat and social lines and strips name fields before anything reaches an add-on.

typemeaning
mission.accepted, mission.completed, mission.failed, mission.withdrawn, mission.abandoned, mission.expireda contract's lifecycle
mission.shareda contract was shared with you
objective.completeda contract objective was done
ship.destroyedyou destroyed a ship. bucket says whose: npc, player, salvage, own (your own ship's self-destruct) or unknown; with its class and the game's reason
ship.lostyour ship was destroyed by someone else. by says by whom (a player, an NPC, or unknown), with its class and reason
life.med_bed, life.hangar, life.crimestata med bed, your hangar, a crime stat change
place.jurisdiction, place.armisticeyou entered a jurisdiction or an armistice zone

Elite Dangerous (elite)

From the game's Player Journal.

typemeaning
game.loaded, game.shutdownyou loaded into the game, or closed it
player.died, player.resurrect, player.self_destructdeath, back in action, self destruct
player.low_health, player.low_oxygenon foot: health or oxygen low
player.embarked, player.disembarkedon foot: got in or out of a ship
player.crimea crime was committed
vehicle.shields_down, vehicle.shields_upshields dropped, or came back
vehicle.hull_damage, vehicle.under_attack, vehicle.cockpit_breacheddamage (at most once every 2 s / 10 s)
vehicle.heat_warning, vehicle.heat_damage, vehicle.overheatingheat
vehicle.fuel_lowfuel low
vehicle.interdicted, vehicle.being_interdicted, vehicle.escaped_interdictioninterdictions
vehicle.docked, vehicle.undocked, vehicle.touchdown, vehicle.liftoffdocking and landing
vehicle.fighter_launched, vehicle.fighter_destroyedship-launched fighters
vehicle.srv_launched, vehicle.srv_docked, vehicle.srv_destroyedthe SRV
travel.fsd_charging, travel.jump_started, travel.jumpedhyperspace jumps
travel.supercruise_entry, travel.supercruise_exitsupercruise
mission.accepted, mission.completed, mission.failed, mission.abandonedmissions
combat.bounty, combat.bond, combat.pvp_killcombat rewards
wing.joined, wing.left, wing.member_joined, crew.joined, crew.leftwings and multicrew

Other games

A game added by someone else's engine sends the events its engine declares. The engine link reference is the format; the engine's own page should list its events.

From the Comms Array source, commsarray-agent d615c4d.