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

Arrow keypresses?

Status
Not open for further replies.
Level 2
Joined
Jun 8, 2004
Messages
14
Hi!!

im working with a map that would be cool if there were a tigger that made the unit turn and move with arrow keypresses.. Do anyone now how to do this??
Plz tell me :D
 
Level 3
Joined
Apr 25, 2004
Messages
35
I have a way to achive what you want. It is quite annoying to explain but ill try:

Events:
Player - keyboard event
when player 1 presses arrow up

Conditions:
(none)

Actions:
Unit - Issue order targeting point
Order (the unit you want to move there) to move to (point with offset and set offset point to the unit you want to move and set the numbers next to it 0. and 100.00)

your trigger should look like this:
Events:
Player - keyboard event
when player 1 presses arrow up

Conditions:
(none)

Actions:
Unit - Issue order targeting point
Order unit 000<gen> to move to point with offset unit 000<gen> 0.00,100.00

your probaly thinking what the hell are the numbers there for?Well Ill tell you what is up,down,left and right the first numbers are representing left and right(posative numbers are right Negative numbers are right)And the second lot of numbers are up and down(posative is up negative is down) last is the numbers you fill in,what this basicly means is how far they move.(remember to put a - infront of a number to make it negative)

And thats all there is to it :!:
Hope it helps :lol:
 
Status
Not open for further replies.
Top