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

Pulling to the casting unit

Status
Not open for further replies.
Level 7
Joined
Feb 4, 2005
Messages
289
I saw that pushing a unit away in the line of the casting unit with offset is easy as it reqs 2 triggers 1 3-4 actions the other only 1.

But i dont know how to pull a unit, i want the simplest possible way to do it. A unit starts ability, the targeted unit then (prolly using move targeted instantly to targeted ) starts sliding in a line back to the caster. Giving me the right actions and especially points and actions is thx.
 
Level 3
Joined
Jul 29, 2006
Messages
61
well all you have to do is reverse enginner a knockback spell.

This is the most important thing you have to change really:
Unit - Move target instantly to ((Position of target) offset by 30.00 towards (Angle from (Position of Caster) to (Position of target)) degrees)
That would have to become -30 I belive, But I'm not sure.
 
Level 7
Joined
Feb 4, 2005
Messages
289
Haha mathematically if you imagine you turn the direction 180 degrees it indeed (from 60 to -60) it absolutely goes close to the caster. I just wasnt sure it would work, thx OMG now i can remove the hard spell and use this :)

1 question: When this works so easily why do i see spells like drag and seize made with so many variables and triggers ?

I answer myself: to make it pass throuhg cliffs. Ok thanks for lighting me up that to you the rope now pulls every time (im using a Climb ability and with the seize based it pulled only once (i use order unit to areal shackles but with seize based it shackled only once, then didnt work) now it pulls every time! thx!).

But PROBLEM (Help pls):

Now that you see the pulling works with the shown triggers i want to make the unit to be pulled through cliffs, high buildings and chasms, in other words - to ignore terrain. Blah it pulls but the unit is stuck, i want to be able to pull it through cliffs so that from down a unit can be pulled up the cliff. What triggers this time?
 
Level 7
Joined
Feb 4, 2005
Messages
289
Ahh thx againg it works now with the collison off then on! I was going to ask but using the same logic and same action for thelightning:
Lightning - Move LaserBelt to source ((Position of LaserBeltTarget) offset by -60.00 towards (Angle from (Position of LaserBeltUser) to (Position of LaserBeltTarget)) degrees) and target (Position of LaserBeltUser)


i made the lightning effect also get shorter with the unit getting closer and closer! Done.
 
Status
Not open for further replies.
Top