VN_fnc_melee_offset

From Savage Game Design Wiki
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Kerc/IFA3 & Ethan Johnson
Argument(s): n/a
Effect(s): unknown

Description

Get position offset from selection.

Syntax

Syntax
[_selection,_offset,_player,_handgun,_custom_dir_vector] call VN_fnc_melee_offset;
Parameters
_selection: String - (Optional, default "") Selection to use for the offset
_offset: Array - (Optional, default [0,0,0]) Relative offset
_player: Object - (Optional, default PLAYER) Player object
_handgun: Boolean - (Optional, default FALSE) Should the handgun angle offset be added
_custom_dir_vector: Array - (Optional, default []) Custom direction vector for special animaions
Return value
Array - Relative offset

Examples

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