Jump to content
Dimrose

Zeus Key Binding Help Needed

Recommended Posts

I'm looking to remove the keybinding of Zeus in game from the Y key. I'm looking to move the key to another spot, but I need to remove it first. Does anyone know what the variable name is in the eventhandler? This is what I have so far. Unless someone knows another way. Thanks for any assistance

 

    _display = (findDisplay 46);

    _varName = "NAMEOFVARIABLENEEDED";
// Exit in case event is already registered
if (!isNil { missionNamespace getVariable _varName }) then
{
    private ["_index", "_down", "_up"];
    _index = missionNamespace getVariable _varName;
    _down = _index select 0;
    _up = _index select 1;
// Reset event handlers
_display displayRemoveEventHandler ["KeyDown", _down];
_display displayRemoveEventHandler ["KeyUp", _up];
missionNamespace setVariable [_varName, nil];

};

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

×