HelpMenu Key binding?

Posts 1–3 of 3 · Page 1 of 1
Menu Key binding?
so by default silent's menu for va has its menu key bound to the Insert key. does anyone know how to change this? i want to put it on F2, any help would be greatly appreciated.

---------- Post added at 09:30 PM ---------- Previous post was at 09:29 PM ----------

45=Scripts\ajmenu.sqf ; Default script bound to INSERT key
AAH=0 ; Anti Anti Hacks feature
ScanBE=1 ; Runtime Battleye scanning feature

---------- Post added at 09:30 PM ---------- Previous post was at 09:30 PM ----------

is that the thing i change or is it somewhere else?
Quote Originally Posted by Mizzle420420 View Post
so by default silent's menu for va has its menu key bound to the Insert key. does anyone know how to change this? i want to put it on F2, any help would be greatly appreciated.

---------- Post added at 09:30 PM ---------- Previous post was at 09:29 PM ----------

45=Scripts\ajmenu.sqf ; Default script bound to INSERT key
AAH=0 ; Anti Anti Hacks feature
ScanBE=1 ; Runtime Battleye scanning feature

---------- Post added at 09:30 PM ---------- Previous post was at 09:30 PM ----------

is that the thing i change or is it somewhere else?
Keycontrol.sqf or keybinds.sqf...
Here is a list of keycodes. http://community.bistudio.com/wiki/ListOfKeyCodes
Quote Originally Posted by darkangel1 View Post
Keycontrol.sqf or keybinds.sqf...
Here is a list of keycodes. http://community.bistudio.com/wiki/ListOfKeyCodesⓘ
thanks buddy

---------- Post added at 11:08 AM ---------- Previous post was at 11:02 AM ----------

Quote Originally Posted by Mizzle420420 View Post
thanks buddy
my menu has only Keycontrol.sqf and i dont see in here where you set the key for boot. it currently is set to Insert but i dont see a code in here that coresponds with a key code from that list you linked. it looks like this

(findDisplay 46) displayRemoveEventHandler ["KeyDown", theKeyControl];
ctrl_onKeyDown =
{
private ["_key", "_return"];
_ctrl = _this select 3;
_shift = _this select 2;
_key = _this select 1;
_return = false;

if(_key == 70) then
{
execVM format['%1ajmenu.sqf',HMDIR];
};

if(footSpeedKeys == "1") then
{
_speed = 1;
_vel = velocity player;

switch (_key) do
{
case 17 : // W - forward
{
_dir = direction player;
player setVelocity [(_vel select 0)+(sin _dir*_speed),(_vel select 1)+(cos _dir*_speed),(_vel select 2)];
};
case 30 : // A - left
{
_dir = (direction player - 90);
player setVelocity [(_vel select 0)+(sin _dir*_speed),(_vel select 1)+(cos _dir*_speed),(_vel select 2)];
};
case 31 : // S - back
{
_dir = (direction player - 180);
player setVelocity [(_vel select 0)+(sin _dir*_speed),(_vel select 1)+(cos _dir*_speed),(_vel select 2)];
};
case 32 : // D - right
{
_dir = (direction player + 90);
player setVelocity [(_vel select 0)+(sin _dir*_speed),(_vel select 1)+(cos _dir*_speed),(_vel select 2)];
};
case 42 : // left shift - moves higher
{
player setVelocity [(_vel select 0),(_vel select 1),(10)];
};
case 29 : // left ctrl - moves lower
{
player setVelocity [(_vel select 0),(_vel select 1),(-10)];
};
case 57 : // space - emergency brake, freeze in air
{
player setVelocity [0, 0, 0];
};
};
}
else
{
switch (_key) do
{
case 17 : {};
case 30 : {};
case 31 : {};
case 32 : {};
case 42 : {};
case 29 : {};
case 57 : {};
};
};
_return
};

waitUntil {!isNull (findDisplay 46)};
theKeyControl = (findDisplay 46) displayAddEventHandler ["keyDown", "_this call ctrl_onKeyDown"];
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us