• 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.

[JASS] Event_player_arrow_down_up

Status
Not open for further replies.
Level 5
Joined
Sep 19, 2006
Messages
152
What is meant by the EVENT_PLAYER_ARROW_DOWN_UP command? Does this mean when these two keys are pressed simultaneously or in rapid succession?

On a related note, is there a single event which will activate a trigger when a player presses ANY of the four arrows keys?

Thanks!
 
Level 11
Joined
Jul 12, 2005
Messages
764
You can create that single event yourself:
JASS:
function TriggerRegisterEventPlayerAnyButton takes trigger whichTrigger, player whichPlayer returns nothing
    call TriggerRegisterPlayerEvent(whichTrigger,whichPlayer,EVENT_PLAYER_ARROW_UP_DOWN)
    call TriggerRegisterPlayerEvent(whichTrigger,whichPlayer,EVENT_PLAYER_ARROW_DOWN_DOWN)
    call TriggerRegisterPlayerEvent(whichTrigger,whichPlayer,EVENT_PLAYER_ARROW_LEFT_DOWN)
    call TriggerRegisterPlayerEvent(whichTrigger,whichPlayer,EVENT_PLAYER_ARROW_RIGHT_DOWN)
endfunction
 
Status
Not open for further replies.
Top