VN_fnc_melee_offset

From Savage Game Design Wiki
Revision as of 01:54, 5 May 2022 by Slow (talk | contribs) (Created page with "{{Function |v= 1.00 |author=Kerc/IFA3 & Ethan Johnson |a= |e= |g1= vn_melee_functions |d= <pre>Get position offset from selection.</pre> |s= [_selection,_offset,_player,_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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;