![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
As you know, the line
Code: Select all
console.bindKeyToConsoleScript 1 myscript
Code: Select all
ControlMap.addKeyToTriggerMapping c_GIScript1 IDFKeyboard IDKey_B c_CMNonRepetive
Is there any way to bind c_GIScript to "TriggerMapping" so that the script will be executed by pressing let's say c_PICrouch key (which can be set in-game with controls settings)?
I found that 1st arguments for both ControlMap.addKeyToTriggerMapping and console.bindKeyToConsoleScript commands are both integer types and tried to bypass controlmap command like this:
Code: Select all
console.bindKeyToConsoleScript c_PICrouch myscript
Code: Select all
ControlMap.addKeyToTriggerMapping c_GIScript1 c_PICrouch c_CMNonRepetive