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

Keyboard Movement

Status
Not open for further replies.
Level 6
Joined
Jan 2, 2007
Messages
189
Okay, probaly ALOT of people may have asked this question but i was just woundering how to control a unit using the directrional buttons. I have read some tutorials on other sites but they made NO sence at all.:sad: So any help would be greatly appreciated. Thanks in advance.
 
Level 6
Joined
Jan 2, 2007
Messages
189
HappyTauren: I cant get the demo to work. I keep getting an error

Mechanical Man: It would be nice if the camera view and controls were like the Azertoh Grand Prix.
 
Level 3
Joined
Dec 18, 2004
Messages
30
If you look at the triggers in that map you should see something along the lines of:

Turn LEFT
Event: when Left is pressed
Action: Set Left=true

Stop LEFT
Event: when Left is released
Action: Set Left=false

Actual Movement
Event: Every .1 seconds
Condition: If Left=True and Right=False
Action: if(forward=false) Make UNIT face (Current rotation +5)
else Move Unit (Current rotation, 100 distance)

There you go a simple way to turn a unit. Do the same thing for right. Do the same for moving forward and backward, making sure to check that left and right are not being pressed. It's really rather simple you just have to think it as a step by step process.

AND if I may say, this doesn't belong in the request section, put it in the trigger section.
 
Status
Not open for further replies.
Top