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

Spell Target Allow

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
Try something like this:
  • Untitled Trigger 052
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • Set point = (Target point of ability being cast)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain pathing at point of type Floatability is off) Equal to False
        • Then - Actions
          • Unit - Order (Triggering unit) to Stop
        • Else - Actions
      • Custom script: call RemoveLocation(udg_point)
 
Level 8
Joined
Dec 9, 2005
Messages
523
Try something like this:
  • Untitled Trigger 052
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • Set point = (Target point of ability being cast)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain pathing at point of type Floatability is off) Equal to False
        • Then - Actions
          • Unit - Order (Triggering unit) to Stop
        • Else - Actions
      • Custom script: call RemoveLocation(udg_point)

Interesting and relevant to my thread about terrain. Does this work on any surface of water (walkable ones and deep ones)?
 
Status
Not open for further replies.
Top