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