Skip to content
VN_fnc_melee_fired

VN_fnc_melee_fired

Function runs when player fires the melee action.

Syntax

[_position,_offset,_length,_player,_butt] call VN_fnc_melee_fired;

Parameters

ParameterTypeDefaultDescription
_projectile Object— Projectile object
_offset Array— Offset from the selection position
_length Number— Length of the intersection
_player Object— Player object
_butt Booleanfalse Is this a butt action

Return value

Boolean - Function reached the end

Examples

[bullet, [0,1,0], 5, player, false] call vn_fnc_melee_fired

Documented by Kerc/IFA3 & Ethan Johnson.