Subscribe
Description
Subscribes the client to the specified channels through DragonflyDB.
Usage
// Arguments:
// 0: STRING - Name of channel to subscribe to (default: "")
// 1: STRING - Name of CBA event type (default: "")
// 2: STRING - Name of CBA custom event (default: "")
// 3: STRING - Target to execute custom cba event on (default: nil)
// Examples:
// Global chat channel subscription
["chat_channel", "global", "dragonfly_chat_msg"] call dragonfly_db_fnc_subscribe; (Server or Singleplayer Only)
// Intel reports to HQ element
["intel_channel", "remote", "dragonfly_intel_report", netId _hqElement] call dragonfly_db_fnc_subscribe; (Server or Singleplayer Only)
// Local vehicle status updates
["vehicle_status", "local", "dragonfly_vehicle_update"] call dragonfly_db_fnc_subscribe; (Server or Singleplayer Only)
// Server-side mission state tracking
["mission_state", "server", "dragonfly_mission_update"] remoteExecCall ["dragonfly_db_fnc_subscribe", 2, false]; (Multiplayer Only)