Auto casting

D.K.

New Member
Reaction score
11
How do I make a unit cast statis trap in front of them? Also, if that area is untargetable, order them to cast it as far as possible with cast range of 1000.
 

LightChaosma

New Member
Reaction score
60
Code:
Untitled Trigger 001
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to <costum ability>
    Actions
        Set temp_point[1] = (Position of (Triggering unit))
        Set temp_point[2] = (temp_point[1] offset by 256.00 towards (Facing of (Triggering unit)) degrees)
        Unit - Order (Triggering unit) to Orc Witch Doctor - Stasis Trap temp_point[2]
        Custom script:   call RemoveLocation(udg_temp_point[1])
        Custom script:   call RemoveLocation(udg_temp_point[2])

where you could use a dummy unit instead of your own unit, give m a sec, ill make that dummy vers too

here it is:
Code:
Untitled Trigger 001
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to your-cast-skill-here
    Actions
        Set temp_point[1] = (Position of (Triggering unit))
        Set temp_point[2] = (temp_point[1] offset by 256.00 towards (Facing of (Triggering unit)) degrees)
        Unit - Create 1 Dummy for (Owner of (Triggering unit)) at temp_point[1] facing (Facing of (Triggering unit)) degrees
        Unit - Add <skill based of statis trap>to (Last created unit)
        Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
        Unit - Order (Last created unit) to Orc Witch Doctor - Stasis Trap temp_point[2]
        Custom script:   call RemoveLocation(udg_temp_point[1])
        Custom script:   call RemoveLocation(udg_temp_point[2])

you can specify the autocast in your events and conditions
 

Sirroelivan

Gunnerkrigg Court
Reaction score
95
Something like this?

Code:
Untitled Trigger 001
    Events
    Conditions
    Actions
        Set p[1] = (Position of (YourUnit))
        Set p[2] = (p[1] offset by 100.00 towards (Facing of (Triggering unit)) degrees)
        Unit - Order (YourUnit) to Orc Witch Doctor - Stasis Trap p[2]
        Custom script:   call RemoveLocation(udg_p[1])
        Custom script:   call RemoveLocation(udg_p[2])
 

D.K.

New Member
Reaction score
11
Well, that trigger does work, but if there is a water in front of them, it doesn't work. I want it to cast as far as possible with a certain range.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top