• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Need help to repair broken system

Status
Not open for further replies.
If you have upgraded to 1.29, would not those work for you:
JASS:
    function TriggerRegisterPlayerKeyboardEvent takes trigger whichTrigger, player whichPlayer, keyboardbutton hotkey, boolean state returns event
       //Fires when the corresponding key is pressed by the player. The keyboardbutton constants are not mentioned but should cover most common keyboard buttons. If state is true then fires when key is pressed, otherwise fires when key is released. Attaching this event causes keyboard button sync traffic from the player.
    function GetTriggerKeyboardButton takes nothing returns keyboardbutton
        //In response to player keyboard event returns which button caused the event.
    function GetTriggerKeyboardState takes nothing returns boolean
       //In response to player keyboard event returns the state that caused the event. True if it was pressed, false if released.
    function GetLocalKeyboardButtonState takes keyboardbutton whichButton returns boolean
       //Returns true if the local client has the specified keyboard button (eg arrow keys) depressed or false if released. Not net safe.
Taken from: Producer Update: Natives List

I'd guess there are GUI counterparts if you require them? Probably? Maybe ? Should be, could be, would be?
Also, for some systems/software NumPad is not a part of the keyboard, no idea if this is the case here... :|

Edit// Oh, is this for number keys, not NumPad ?? If that is the case, then there should not be aproblem... I'd guess...


Hope this helps!
-Ned
 
Status
Not open for further replies.
Back
Top