Skip to content
vn_fnc_sa2_fired

vn_fnc_sa2_fired

SA2 fired eventhandler function, does not use all parameters from the fired eventhandler

Syntax

[
    player,
    "weapon",
    "muzzle",
    "mode",
    "ammo",
    "magazine",
    "projectile",
    gunner
] call vn_fnc_sa2_fired

Parameters

ParameterTypeDefaultDescription
_unit ObjectOBJNULL Unit which the eventhandler is attached to.
_weapon String"" Weapon classname of the fired weapon.
_muzzle String"" Muzzle of the fired weapon.
_mode String"" Mode of the fired weapon.
_ammo String"" Ammo of the fired weapon.
_magazine String"" Magazine of the fired weapon.
_projectile String"" Projectile of the fired weapon.
_gunner ObjectOBJNULL Unit that insigated the fired eventhandler.

Return value

Boolean - function reached the end

Examples

[player, "weapon", "muzzle", "mode", "ammo", "magazine", "projectile", gunner] call vn_fnc_sa2_fired

Documented by Ethan Johnson.