fnc_addUnitEventHandlers.sqf

Summary
fnc_addUnitEventHandlers.sqf
Functions
OCAP_recorder_fnc_addUnitEventHandlersUsed for applying unit-specific event handlers to units during initialization.

Functions

OCAP_recorder_fnc_addUnitEventHandlers

Description

Used for applying unit-specific event handlers to units during initialization.  These event handlers will trigger on the server.

Applied during initialization of a unit in OCAP_recorder_fnc_captureLoop.

Note: Hit tracking moved to projectile EHs in OCAP_recorder_fnc_eh_firedMan

Parameters

_entityObject to apply event handlers to.  [Object]
_respawnDetermines if unit is initialized for the first time, or has respawned and does not need certain handlers reapplied.  [[Bool], default: false]

Returns

Nothing

Examples

[_unit] spawn FUNC(addUnitEventHandlers);

Public

No

Author

IndigoFox, Fank

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.
Tracks bullet and non-bullet projectiles.
Close