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

[Trigger] Keyboard Movement

Status
Not open for further replies.
Level 6
Joined
Jan 2, 2007
Messages
189
I have started working on a keyboard movement system and I ran into a little problem. I have the turning set but I cant get the unit to move foreword. What is the tirgger action that moves a UNIT 'x' amount of distance in the direction the UNIT is facing? Thanks for your help.

Note:this is in 3rd person
 
Level 4
Joined
Jun 21, 2007
Messages
116
Remember, arrow keys in multiplayer maps suffer from extreme lag. You might want to use IKJL keys mapped to some dummy abilities, because abilities' hotkeys reaction time is way faster (almost instant)
 
hmmm make 3 triggers.
  • WalkingTrig
  • Event
    • Player 1(Red) Presses the Up Arrow key
  • Conditions
  • Actions
    • Turn on "Walking"
  • Walking
  • Event
    • Time - Every 0.20 seconds of Game-Time
  • Conditions
  • Actions
    • Unit - Order (whatever hero/unit player has in var form) to Move To ((Position of (" ")) offset by 250 towards (Facing of (" ")) degrees)
  • Stopping
  • Event
    • Player 1(Red) Releases the Up Arrow key
  • Conditions
  • Actions
    • Trigger - Turn off Walking
and if thats not what you're looking for then i cant help.. sorry if this doesnt help at all
 
Level 15
Joined
Feb 9, 2006
Messages
1,598
hmmm make 3 triggers.
  • WalkingTrig
  • Event
    • Player 1(Red) Presses the Up Arrow key
  • Conditions
  • Actions
    • Turn on "Walking"
  • Walking
  • Event
    • Time - Every 0.20 seconds of Game-Time
  • Conditions
  • Actions
    • Unit - Order (whatever hero/unit player has in var form) to Move To ((Position of (" ")) offset by 250 towards (Facing of (" ")) degrees)
  • Stopping
  • Event
    • Player 1(Red) Releases the Up Arrow key
  • Conditions
  • Actions
    • Trigger - Turn off Walking
and if thats not what you're looking for then i cant help.. sorry if this doesnt help at all


There are far more easier ways to create such systems. Look at HappyTauren's system for an example.
 
Status
Not open for further replies.
Top