• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Trigger] Moving the Dummy Units

Status
Not open for further replies.
There are two main ways to move a dummy. The first is more used for projectiles, and uses a periotic event.
  • Dummy Movement Type 1
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Set TempLocA = (Position of Dummy)
      • Set TempLocB = (TempLocA offset by 10.00 towards (Facing of Dummy) degrees)
      • Unit - Move Dummy instantly to TempLocB
      • Custom script: call RemoveLocation(udg_TempLocA)
      • Custom script: call RemoveLocation(udg_TempLocB)
The second is a much simplier way, and just uses the Initilization trigger.
  • Dummy Movement Type 2
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Set TempLocB = (Position of (Casting unit))
      • Set TempLocC = (Target point of ability being cast)
      • Set TempLocA = (TempLocB offset by 100.00 towards (Angle from TempLocB to TempLocC) degrees)
      • Custom script: call RemoveLocation(udg_TempLocB)
      • Set TempLocB = (TempLocA offset by 2000.00 towards (Angle from TempLocA to TempLocC) degrees)
      • Unit - Create 1 Footman for (Owner of (Casting unit)) at TempLocA facing (Angle from TempLocA to TempLocC) degrees
      • Unit - Order (Last created unit) to Move To TempLocB
      • Unit - Add a 20.00 second Generic expiration timer to (Last created unit)
 
Status
Not open for further replies.
Top