• 🏆 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!

[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?
 
Level 12
Joined
Jul 27, 2008
Messages
1,181
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.
Top