Page 1 of 1

BlockButton(+Mykey, true)

Posted: Fri Sep 30, 2016 5:21 am
by Alekv
Hello, I want to ask for such a function:
I do not know whether it makes sense to create suggestions, but sorely lacking function that can block one button not only in the ACS but also in keykonf. Such a function is difficult to realized?
like this:
keyConf:

Code: Select all

AddMenuKey "SomeKey" +MyKey
alias +MyKey "Puke 5; Take Left; Take Right; Take Walk; Take WalkStop; Give Walk; Give Right; +forward;"
alias -MyKey "-forward; Take Right; Take Walk; Take WalkStop; Give WalkStop"
DefaultBind D +MyKey

function blocks in keyСonf pressing button +myKey:
BlockKey(str key, int blockkey);//str key this variable or string of lump keykonf
int CheckBlockKey(str MyKey);// return true if key block, or return false if key not block.
Script 1 (void)
{
if(CheckBlockKey(+MyKey)== false)
    {
    BlockButton(+Mykey, true);
    }
}

Re: BlockButton(+Mykey, true)

Posted: Fri Sep 30, 2016 5:29 am
by Graf Zahl
None of this ever reaches ACS, so it can't be checked. Input and game logic are strictly separated from each other so you can neither check anything beyond what actually crosses the network boundary nor can you transmit actions from the script to the outside.