Difference between revisions of "VN fnc kbm getKey"

From Savage Game Design Wiki
Jump to navigation Jump to search
(Page filling)
m (Some wiki formatting)
 
(2 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
|d= Returns the currently assigned keybind to a specific action.
 
|d= Returns the currently assigned keybind to a specific action.
  
|s= [] call [[VN_fnc_kbm_getKey]];
+
|s= [] call [[VN_fnc_kbm_getKey]]
  
 
|p1n= action
 
|p1n= action
Line 27: Line 27:
 
* alt: {{DataType|boolean}} - alt modifier needed
 
* alt: {{DataType|boolean}} - alt modifier needed
  
|x1= <code>private _data = ["GestureMenu"] call VN_fnc_kbm_getKey; {{cc|returns [15,false,false,false] (default)}}</code>
+
|x1= <code>private _data = ["GestureMenu"] call [[VN_fnc_kbm_getKey]]; {{cc|returns [15,false,false,false] (default)}}</code>
 
}}
 
}}

Latest revision as of 20:17, 26 February 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Heyoxe
Argument(s): n/a
Effect(s): local

Description

Returns the currently assigned keybind to a specific action.

Syntax

Syntax
[] call VN_fnc_kbm_getKey
Parameters
action: String - name of the action as defined in config
Return value
Array - format [key, shift, ctrl, alt]:

Examples

Example 1
private _data = ["GestureMenu"] call VN_fnc_kbm_getKey; // returns [15,false,false,false] (default)