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