Skip to content
VN_fnc_melee_damage

VN_fnc_melee_damage

Deal damage to the unit that has been intersected through the melee system.

Syntax

[
    _projectile,
    _impact_asl,
    _time,
    _normal,
    _object,
    _player,
    _evh,
    _start_time
] call VN_fnc_melee_damage;

Parameters

ParameterTypeDefaultDescription
_projectile Object— Projectile object
_impact_asl Array— Impact ASL position
_time Number— Current time
_normal Array— Impact normal
_object Object— Object that has been intersected
_player Object— Players object
_evh String— Eventhandler ID
_start_time Number— Time at which the action started

Return value

Boolean - Function reached the end

Examples

[bullet, [1,1,5], 15, [0,0,1], man1, player, "melee_evh", 10] call vn_fnc_melee_damage;

Documented by Kerc/IFA3 & Ethan Johnson.