• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

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