fnc_getEventWeaponText.sqf

Summary
fnc_getEventWeaponText.sqf
Functions
OCAP_recorder_fnc_getEventWeaponTextUsed to identify the current weapon a unit is using that has injured or killed another.

Functions

OCAP_recorder_fnc_getEventWeaponText

Description

Used to identify the current weapon a unit is using that has injured or killed another.  Will determine the handheld weapon or vehicle weapon they’re using.

Attempts to reference OCAP_lastFired but will fall back to current value if not available.

Called during <OCAP_recorder_fnc_projectileHit> and OCAP_recorder_fnc_eh_killed.

Parameters

_instigatorThe unit to evaluate [Object]

Returns

The description of weapon or vehicle > weapon.  [String]

Examples

[_shooter] call FUNC(getEventWeaponText)

Public

No

Author

IndigoFox

Indicates a formatted string of the last weapon and magazine type fired by the unit.
Tracks when a unit is killed.
Close