FF SUITEArma 3 addons

Spectator · Radios and monitors

setupACRE2Handlers

FF_spectator_fnc_setupACRE2Handlers

internalPREP143 lines

Description

Registers CBA event handlers for ACRE2 speaking and transmitting events.

These handlers directly maintain the spectator-local speaking and transmitting

unit arrays (GVAR(acre2_speakingUnits) / GVAR(acre2_transmittingUnits)).

Like the local TFAR setup, ACRE2's remote events

fire locally on ALL clients — including the spectator — so no broadcasting

is needed. The arrays are maintained directly here.

Events used (from ACRE2 public API, available since v2.7.0 / v2.7.2):

acre_startedSpeaking [Unit, On Radio (BOOL), Radio ID (STRING), Speaking Type (NUMBER)]

Fires on the LOCAL machine when the local player starts speaking.

acre_stoppedSpeaking [Unit, On Radio (BOOL)]

Fires on the LOCAL machine when the local player stops speaking.

acre_remoteStartedSpeaking [Unit, Speaking Type (NUMBER), Radio ID (STRING)]

Fires on ALL clients when a REMOTE unit starts speaking.

Speaking Type: 0 = local voice, 1 = radio transmission.

acre_remoteStoppedSpeaking [Unit]

Fires on ALL clients when a REMOTE unit stops speaking.

Parameters:

None

Returns:

Nothing

Examples:

(begin example)

call FF_SPECT_fnc_setupACRE2Handlers;

(end)

Author:

ffredyk

----------------------------------------------------------------------------

Example

No example in the source header.

Source

File
x\FF\addons\spectator\fnc_setupACRE2Handlers.sqf
Lines
143
Registration
PREP
Exposure
internal