[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