Page MenuHomeFeedback Tracker

actionKeys "TacticalView" not returning the correct key
New, NormalPublic

Description

When you bind tactical view to any key and make it so you have to press it twice, the actionKeys "TacticalView"; does not return the correct key.

It seems the "actionKeys "TacticalView";" will return the double press bik code, instead of the useable (single key) code in KeyDown.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

#1. open your controls, find tactical view, and make it any key, but 2x.
#2. go into the editor, place down a unit, play as the unit, open debug console, and local-exec this code:

(findDisplay 46) displayAddEventHandler ["KeyDown", 
{
	_message = format["TacticalKey: %1, KeyPressed: %2, Is tactical key: %3", (actionKeys "TacticalView") select 0, (_this select 1), (_this select 0) in (actionKeys "TacticalView")];
	systemchat _message;
}];

#3. press your tactical key.
#4. look at the "system" chat.

Additional Information

Setting the key-bind of tactical view to one key, and only needed to be pressed once, actionKeys "TacticalView"; will return the correct key.

Event Timeline