Moving to back of unit.

Nightshadow

New Member
Reaction score
0
hey(again) all...
Im wonderin' how i can make a trigger that would instantly move the caster to the back of someone... so... move him behind the target.
And if id like to make a blink where, when you target the point, you move there, and then after 0.25 seconds you move to a place same distanceas the 1st blink, and in the same direction... sorta like Double-Blink
Thanks for any help guys.
NS:eek:
 

lh2705

Just another Helper
Reaction score
111
Moving to the back.
Code:
Set Point1 = Position of Target Unit of Ability Being Cast
Set Point2 = Point1 offset 75 towards ((Facing of Target Unit of Ability Being Cast)-180)
Unit - Move Triggering Unit to Point2
Custom Script : call RemoveLocation (udg_Point1)
Custom Script : call RemoveLocation (udg_Point2)
 

Sevion

The DIY Ninja
Reaction score
413
The first one use a Polar Offset. The second you'll have to trigger it so do something along the lines of:

Code:
Double-Blink
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Double-Blink
    Actions
        Set BlinkPoint[1] = ((Position of (Casting unit)) offset by (Distance between (Target point of ability being cast) and (Position of (Casting unit))) towards (Facing of (Casting unit)) degrees)
        Set BlinkPoint[2] = (Position of (Casting unit))
        Special Effect - Create a special effect at BlinkPoint[1] using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
        Special Effect - Destroy (Last created special effect)
        Special Effect - Create a special effect at BlinkPoint[2] using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
        Special Effect - Destroy (Last created special effect)
        Unit - Move (Casting unit) instantly to BlinkPoint[1]
        Custom script:   call RemoveLocation(udg_BlinkPoint[1])
        Custom script:   call RemoveLocation(udg_BlinkPoint[2])

Edit: Looks like lh2705 beat me to the Moving To The Back thing. Though, I'm sure you don't need two points. Just one. And if you do, I'd change it to an array and make it Point[1] and Point[2]
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top