fnc_captureLoop.sqf | |
Functions | |
OCAP_recorder_fnc_captureLoop | 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. |
Variables | |
OCAP_PFHObject | The CBA PerFrameHandler object that is created and used to run the capture loop. |
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.
None
Nothing
call FUNC(captureLoop);
No
Dell, Zealot, IndigoFox, Fank
Used to determine if events should currently be saved based on OCAP_recorder_recording and OCAP_recorder_startTime.
#define SHOULDSAVEEVENTS ( (missionNamespace getVariable [QGVAR(recording), false]) && missionNamespace getVariable [QGVAR(startTime), -1] > -1 )