HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

(jass) rewrite an event into a condition

02-09-2006, 09:05 PM#1
Doomhammer
it would be extremely useful to me to rewrite

Code:
call TriggerRegisterPlayerKeyEventBJ( gg_trg_up, Player(0), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_UP )

to a condition "if player presses the up arrow key"... then

any possible, or does it make no sense after all?
02-09-2006, 09:09 PM#2
Captain Griffen
Well, I presume you mean "if player is holding down the up arrow key", and you just use variable set by different events to track them.
02-09-2006, 09:26 PM#3
Doomhammer
hmm?

would you mind writing your answer in jass?
02-09-2006, 09:43 PM#4
Anitarf
Use the press/depress events to set a boolean variable to true/false. Use the variable as your condition.
02-09-2006, 10:29 PM#5
Doomhammer
a smart solution