Jump to content

Recommended Posts

Hi,

Is there a way to read/rewrite the keybinds in ProfileName.Arma3Profile profile file by script?

...
keyMoveForward[]={17,200};
keyMoveBack[]={31,208};
keyTurnLeft[]={30,203};
keyTurnRight[]={32,205};
keyMoveUp[]={45};
keyMoveDown[]={44};
keyMoveFastForward[]={286457887,521338897};
keyMoveSlowForward[]={};
keyMoveLeft[]={};
keyMoveRight[]={};
keyEvasiveLeft[]={16};
keyEvasiveRight[]={18};
keyStand[]={};
keyCrouch[]={};
keyProne[]={};
keyLeanLeft[]={16,524291};
keyLeanRight[]={18,524297};
keyLeanLeftToggle[]={272};
keyLeanRightToggle[]={274};
keyWalkRunToggle[]={};
keyWalkRunTemp[]={57};
keyTactToggle[]={};
keyTactTemp[]={42};
...

I assume its possible somehow since these settings can be changed in armas options menu. I took a look at the scripts in ui_f.pbo but was unable to figure out how it works...

I want to create a custom dialog for setting keybinds and presets during missions

 

Share this post


Link to post
Share on other sites
14 hours ago, Bayern_Maik said:

Is there a way to read/rewrite the keybinds in ProfileName.Arma3Profile profile file by script?

No.

 

14 hours ago, Bayern_Maik said:

I assume its possible somehow since these settings can be changed in armas options menu.

No. The menu is a engine menu, not a scripted one.

 

14 hours ago, Bayern_Maik said:

I took a look at the scripts in ui_f.pbo but was unable to figure out how it works...

That's because the scripts for that menu don't exist.

  • Like 1

Share this post


Link to post
Share on other sites

you can read them but not change them via sqf

however you can just make your own system and store it in profileNamespace

 

https://community.bistudio.com/wiki/actionKeys

https://community.bistudio.com/wiki/displayAddEventHandler on main display and keyDown

 

i suppose CBA/ACE already has such system. so check those out first

  • Like 1

Share this post


Link to post
Share on other sites
1 minute ago, .kju said:

however you can just make your own system and store it in profileNamespace

For defining custom keybinds with custom actions yes.
But you can't rebind WASD for example, there are only very few keybinds that could be replaced with your own scripted implementation.

 

2 minutes ago, .kju said:

i suppose CBA/ACE already has such system. so check those out first

CBA

https://github.com/CBATeam/CBA_A3/wiki/Keybinding

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×