• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Making a "Fear" type Ability?

Status
Not open for further replies.
Level 6
Joined
Apr 23, 2009
Messages
94
  • Untitled Trigger 033
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units within 350.00 of FEARTRAP matching (((Owner of (Matching unit)) is an enemy of Player 1 (Red)) Equal to True)) and do (Actions)
        • Loop - Actions
          • Do nothing
But i can't figure out how to make them run away in fear..
Anyone know a base spell, and how to make them run AWAY from the Trap?
Or any alternatives?
 
Well, generally they'd have to aproach the trap so do:
  • FearEvents
  • Events
    • Unit - A Unit Fisnishes casting an Ability
  • Conditions
    • (Ability Being Cast) Equal to Fear Trap
  • Actions
    • Trigger - Add to FearTrap the Event (Unit - Unit is within 350 of (Summoned Unit))
  • FearTrap
  • Events
  • Conditions
  • Actions
    • Set loc = (Position of(Triggering Unit))
    • Unit - Order (Triggering Unit) to Move to (loc offset by -300 towards (Facing of (Triggering Unit)))
    • Custom script: call RemoveLocation(udg_loc)
 
Status
Not open for further replies.
Back
Top