Skip to content
VN_fnc_melee_offset

VN_fnc_melee_offset

Get position offset from selection.

Syntax

[
    _selection,
    _offset,
    _player,
    _handgun,
    _custom_dir_vector
] call VN_fnc_melee_offset;

Parameters

ParameterTypeDefaultDescription
_selection String"" Selection to use for the offset
_offset Array[0,0,0] Relative offset
_player ObjectPLAYER Player object
_handgun BooleanFALSE Should the handgun angle offset be added
_custom_dir_vector Array[] Custom direction vector for special animaions

Return value

Array - Relative offset

Examples

["head", [0,0,1], player, 90] call vn_fnc_melee_offset;

Documented by Kerc/IFA3 & Ethan Johnson.