fnc_captureLoop.sqf

Summary
fnc_captureLoop.sqf
Functions
OCAP_recorder_fnc_captureLoopThis function is run unscheduled and creates a CBA PerFrameHandler object, a logic object which executes code every specified interval (OCAP_settings_frameCaptureDelay) while a condition (SHOULDSAVEEVENTS) is true.
Variables
OCAP_PFHObjectThe CBA PerFrameHandler object that is created and used to run the capture loop.

Functions

OCAP_recorder_fnc_captureLoop

Description

This function is run unscheduled and creates a CBA PerFrameHandler object, a logic object which executes code every specified interval (OCAP_settings_frameCaptureDelay) while a condition (SHOULDSAVEEVENTS) is true.

Iterates through units and vehicles, declares they exist, and conditionally sends their information to the extension to populate recording data.

This is the core processing loop that determines when new units enter the world, all the details about them, classifies which to exclude, and determines their health/life status.  It has both unit and vehicle tracking.

Parameters

None

Returns

Nothing

Examples

call FUNC(captureLoop);

Public

No

Author

Dell, Zealot, IndigoFox, Fank

Variables

OCAP_PFHObject

The CBA PerFrameHandler object that is created and used to run the capture loop.

Positioning, medical status, and crew states of units and vehicles will be captured every X amount of seconds.
#define SHOULDSAVEEVENTS (
   (missionNamespace getVariable [QGVAR(recording), false]) && missionNamespace getVariable [QGVAR(startTime), -1] -1
)
Used to determine if events should currently be saved based on OCAP_recorder_recording and OCAP_recorder_startTime.
Close