Skip to content
VN_fnc_m72law

VN_fnc_m72law

M72 LAW fired eventhandler function. Will wait until the player attempts to reload or stops holding the fire button.

Syntax

[
    _unit,
    _weapon,
    _muzzle,
    _mode,
    _ammo,
    _magazine,
    _projectile,
    _gunner
] call VN_fnc_m72law;

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_myFunction;

Documented by Ethan Johnson.