fnc_addEventMission.sqf | |
Functions | |
OCAP_recorder_fnc_addEventMission | Used for applying mission event handlers. |
Event Handlers | |
Event Handlers | |
OCAP_EH_HandleDisconnect | Fired when a player leaves the mission by returning to lobby or disconnecting. |
OCAP_EH_PlayerConnected | Handle for the “PlayerConnected” mission event handler. |
OCAP_EH_OnUserAdminStateChanged | Handle for the “OnUserAdminStateChange” mission event handler. |
OCAP_EH_EntityKilled | Handle for the “EntityKilled” mission event handler. |
OCAP_EH_EntityRespawned | Handle for the “EntityRespawned” mission event handler. |
OCAP_EH_MPEnded | Handle for the “MPEnded” mission event handler. |
OCAP_EH_Ended | Handle for the “Ended” mission event handler. |
CBA Events | |
Variables | |
CBA Listener Handles | |
CBA Events | |
ace_advanced_throwing_throwFiredXEH | Fired when a throwable is primed. |
ace_explosives_place | Event listener for ACE3 global event indicating a mine has been placed and armed. |
OCAP_customEvent | Event listener for custom event text to be added to the timeline. |
OCAP_counterInit | Meant for use in custom tracking of points or score between two sides. |
OCAP_counterEvent | Meant for use in custom tracking of points or score between two sides. |
OCAP_record | Used to start or resume recording. |
OCAP_pause | Used to pause recording. |
OCAP_exportData | Used to stop recording & signal the extension to save and upload it to the web component. |
Used for applying mission event handlers. Applied during initialization of OCAP in OCAP_recorder_fnc_init.
None
Nothing
call FUNC(addEventMission);
No
IndigoFox, Dell
Event Handlers | |
OCAP_EH_HandleDisconnect | Fired when a player leaves the mission by returning to lobby or disconnecting. |
OCAP_EH_PlayerConnected | Handle for the “PlayerConnected” mission event handler. |
OCAP_EH_OnUserAdminStateChanged | Handle for the “OnUserAdminStateChange” mission event handler. |
OCAP_EH_EntityKilled | Handle for the “EntityKilled” mission event handler. |
OCAP_EH_EntityRespawned | Handle for the “EntityRespawned” mission event handler. |
OCAP_EH_MPEnded | Handle for the “MPEnded” mission event handler. |
OCAP_EH_Ended | Handle for the “Ended” mission event handler. |
Fired when a player leaves the mission by returning to lobby or disconnecting. Calls OCAP_recorder_fnc_eh_disconnected.
Handle for the “PlayerConnected” mission event handler. Fired when a player joins the mission from lobby and appears in the world. Calls OCAP_recorder_fnc_eh_connected.
Handle for the “OnUserAdminStateChange” mission event handler. Fired when a player’s admin status changes. Calls OCAP_recorder_fnc_eh_onUserAdminStateChanged.
Handle for the “EntityKilled” mission event handler. Fired when an entity is killed. Calls OCAP_recorder_fnc_eh_killed.
Handle for the “EntityRespawned” mission event handler. Fired when an entity is respawned. Sets new body to not-killed and calls OCAP_recorder_fnc_addUnitEventHandlers on it. Then excludes corpse from further capture.
Handle for the “MPEnded” mission event handler. Fired on the MPEnded mission event. This is used to automatically save and export if OCAP_settings_saveMissionEnded is true and OCAP_settings_minMissionTime was reached.
Handle for the “Ended” mission event handler. Fired on the singleplayer Ended mission event. This is used to automatically save and export if OCAP_settings_saveMissionEnded is true and OCAP_settings_minMissionTime was reached. Kept in just in case this event triggers.
Variables | |
CBA Listener Handles | |
CBA Events | |
ace_advanced_throwing_throwFiredXEH | Fired when a throwable is primed. |
ace_explosives_place | Event listener for ACE3 global event indicating a mine has been placed and armed. |
OCAP_customEvent | Event listener for custom event text to be added to the timeline. |
OCAP_counterInit | Meant for use in custom tracking of points or score between two sides. |
OCAP_counterEvent | Meant for use in custom tracking of points or score between two sides. |
OCAP_record | Used to start or resume recording. |
OCAP_pause | Used to pause recording. |
OCAP_exportData | Used to stop recording & signal the extension to save and upload it to the web component. |
OCAP_listener_aceThrowing | Handle for ace_advanced_throwing_throwFiredXEH listener. |
OCAP_listener_aceExplosives | Handle for ace_explosives_place listener. |
OCAP_listener_customEvent | Handle for OCAP_customEvent listener. |
OCAP_listener_counterInit | Handle for OCAP_counterInit listener. |
OCAP_listener_counterEvent | Handle for OCAP_counterEvent listener. |
OCAP_counter_sides | Sides that are tracked by the custom counter system. [Array] |
OCAP_listener_record | Handle for OCAP_record listener. |
OCAP_listener_pause | Handle for OCAP_pause listener. |
OCAP_listener_exportData | Handle for OCAP_exportData listener. |
EGVAR( listener, aceThrowing ) = ["ace_advanced_throwing_throwFiredXEH", { _this call FUNC(eh_firedMan) }] call CBA_fnc_addEventHandler
Fired when a throwable is primed. This is a global event the server will handle and forward to OCAP_recorder_fnc_eh_firedMan. Created only if PBO “ace_advanced_throwing” is loaded.
EGVAR( listener, aceExplosives ) = ["ace_explosives_place", { call FUNC(aceExplosives); }] call CBA_fnc_addEventHandler
Event listener for ACE3 global event indicating a mine has been placed and armed. Calls OCAP_recorder_fnc_aceExplosives when triggered. Created only if PBO “ace_explosives” is loaded.
Event listener for custom event text to be added to the timeline. Calls OCAP_recorder_fnc_handleCustomEvent when triggered.
0 | Event name [String] |
1 | Event data [Array] |
1.0 | Always “generalEvent” [String] |
1.1 | Custom event text [String] |
["OCAP_customEvent", ["generalEvent", "The warehouse has been secured!"]] call CBA_fnc_serverEvent; [QGVARMAIN(customEvent), ["generalEvent", "The warehouse has been secured!"]] call CBA_fnc_serverEvent;
Meant for use in custom tracking of points or score between two sides. Separate from BIS_fnc_respawnTickets. Initializes the system. Calls <OCAP_recorder_fnc_counterInit> when triggered.
0 | Event name [String] |
1 | Key/value for one or more sides [Array] |
1.0 | Pair [Array] |
1.0.0 | Side <SIDE> |
1.0.1 | Initial value [Number] |
["OCAP_counterInit", [ [west, 0], [east, 0] ]] call CBA_fnc_serverEvent; [QGVARMAIN(counterInit), [ [west, 0], [east, 0] ]] call CBA_fnc_serverEvent;
Meant for use in custom tracking of points or score between two sides. Separate from BIS_fnc_respawnTickets. Updates the system. Calls <OCAP_recorder_fnc_counterEvent> when triggered.
0 | Event name [String] |
1 | Event data [Array] |
1.0 | Side <SIDE> |
1.1 | Value to set [Number] |
["OCAP_counterEvent", [west, 1]] call CBA_fnc_serverEvent;
Used to start or resume recording. Calls OCAP_recorder_fnc_startRecording when triggered.
["OCAP_record"] call CBA_fnc_serverEvent;
Used to pause recording. Calls OCAP_recorder_fnc_stopRecording when triggered.
["OCAP_pause"] call CBA_fnc_serverEvent;
Used to stop recording & signal the extension to save and upload it to the web component. Calls OCAP_recorder_fnc_exportData when triggered.
Will always bypass OCAP_settings_minMissionTime.
0 | Event name [String] |
1 | Event data [Array] |
1.0 | (optional) Winning side <SIDE> |
1.1 | (optional) Message describing mission end [String] |
1.2 | (optional) Custom save tag (overrides OCAP_settings_saveTag) [String] |
Fired when a throwable is primed.
EGVAR( listener, aceThrowing ) = ["ace_advanced_throwing_throwFiredXEH", { _this call FUNC(eh_firedMan) }] call CBA_fnc_addEventHandler
Event listener for ACE3 global event indicating a mine has been placed and armed.
EGVAR( listener, aceExplosives ) = ["ace_explosives_place", { call FUNC(aceExplosives); }] call CBA_fnc_addEventHandler