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

Continuous Movement

Status
Not open for further replies.
Level 16
Joined
Jul 21, 2008
Messages
1,121
Here is continuous move trigger (Only for player 1)

  • Move up 1
    • Events
      • Player - Player 1 (Red) Presses the Up Arrow key
    • Conditions
    • Actions
      • -------- Turning loop move up trigger on --------
      • Trigger - Turn on Move up 2 <gen>
  • Move up 2
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set TempPoint = (Position of Your Unit)
      • Unit - Order Your Unit to Move To (TempPoint offset by 100.00 towards (Your Unit) degrees)
      • Custom script: call RemoveLocation(udg_TempPoint)
  • Move up 3
    • Events
      • Player - Player 1 (Red) Releases the Up Arrow key
    • Conditions
    • Actions
      • Trigger - Turn off Move up 2 <gen>
This is only for UP arrow key. To make this MPI add moving units of each player to a unit group when pressing arrow, and remove them when relasing arrow. In middle trigger just add Unit Group - pick every unit.
 
Last edited:
Status
Not open for further replies.
Top