For the complete documentation index, see llms.txt. This page is also available as Markdown.

Fire Alarm

Monitor alarm controllers, surface active and fault states, toggle alarms, and play a sound when the active count increases.

This example connects an existing in-game fire alarm resource to CAD. Dispatchers can see normal, active, and faulted controllers without entering the game. When an alarm activates in-game, the resource publishes the new state so the CAD card pulses red and plays an alert sound. A dispatcher can also use the panel toggle to change the alarm state in-game.

Fire Alarm custom integration panel

How It Connects

  1. Install or update the panel definition when the resource is configured.

  2. On resource start, read every alarm controller and publish the complete panel state.

  3. When an alarm changes in-game, publish the new state. Connected CAD clients update immediately.

  4. Poll for alarm.set-active actions. Apply each action through the alarm resource, acknowledge it, then publish the authoritative state again.

Game-Side Outline

The following is server-side pseudocode. Adapt the events and function names to your alarm resource and preferred API library.

See Set State, Poll Actions, and Acknowledge Action for copyable calls in every supported library.

Actions

Action ID
Purpose

alarm.set-active

Toggle one alarm on or off.

Definition JSON

Open the raw definition

Copy the complete definition

Example State

Open the raw state

Copy the example state

Last updated

Was this helpful?