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.

How It Connects
Install or update the panel definition when the resource is configured.
On resource start, read every alarm controller and publish the complete panel state.
When an alarm changes in-game, publish the new state. Connected CAD clients update immediately.
Poll for
alarm.set-activeactions. 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
alarm.set-active
Toggle one alarm on or off.
Definition JSON
Example State
Last updated
Was this helpful?

