BlockButton(+Mykey, true)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: BlockButton(+Mykey, true)

Re: BlockButton(+Mykey, true)

by Graf Zahl » Fri Sep 30, 2016 5:29 am

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.

BlockButton(+Mykey, true)

by Alekv » Fri Sep 30, 2016 5:21 am

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);
    }
}

Top