Deleted member 264867
D
Deleted member 264867
Hi everyone.
This code:
doens't work if I hold down the left click (works fine with right click and middle click), just like it doesn't work if I hold down SHIFT or ALT, becouse both are MetaKey and I passed 0 as integer.
I deduced that the left click acts like a metakey, but I tried giving from -1000 to 1000 as integer in the event and nothing changed.
So my question is, what is the problem here? Why doesn't the code work when I hold down the left click? It's becouse it is a MetaKey? And if so, what integer? Or is it just a bug?
I'd like to hear someone's tought about this, it would be really helpful for my map.
Thank for your time.
This code:
Code:
function test1()
keytrig = CreateTrigger()
function key()
print("key")
end
BlzTriggerRegisterPlayerKeyEvent(keytrig,Player(0),OSKEY_W,0,true)
TriggerAddAction(keytrig,key)
end
I deduced that the left click acts like a metakey, but I tried giving from -1000 to 1000 as integer in the event and nothing changed.
So my question is, what is the problem here? Why doesn't the code work when I hold down the left click? It's becouse it is a MetaKey? And if so, what integer? Or is it just a bug?
I'd like to hear someone's tought about this, it would be really helpful for my map.
Thank for your time.