I'd like to make an ability that grabs an target unit, immobilizes and slowly pulls it closer to the caster, until caster is killed.
Here's a video that shows the ability - it's at 2.30.
The rough idea I've got on how to do this - data editor-wise - is:
1) A missile in the form of tentacle strikes the target
2) Set target behavior to suppress all movement and abilities
3) The above behavior has a validator that checks if caster is alive, it will terminate if it is dead
Not sure how to pull target closer though.
Anyone has any concrete ideas on how to this? Will be appreciated.
put an "apply force effect " within the buff behavior you just specified on the periodic field , setting the perodic time interval will determine the pace at which this unit is drawn towards you. Also for the apply force effect use negative numbers to get it to come towards you.
Tentacle missile can be a little tricky. For this specific spell, it should be enough, if you check the "return"- flag for your missile launch effect, specify a return mover, add a return delay as long as your ability should last and base the missile actor off a tentacle missile.
The model used for the tentacle missile in the video looks like RoachTentacle (or similar), look it up in the previewer.
As Jinx said, the pull back is probably realized using apply force effects. To learn how o use them, have a look at the tutorial section and search for force effects tutorials.
I'd like to make an ability that grabs an target unit, immobilizes and slowly pulls it closer to the caster, until caster is killed.
Here's a video that shows the ability - it's at 2.30.
The rough idea I've got on how to do this - data editor-wise - is: 1) A missile in the form of tentacle strikes the target 2) Set target behavior to suppress all movement and abilities 3) The above behavior has a validator that checks if caster is alive, it will terminate if it is dead Not sure how to pull target closer though.
Anyone has any concrete ideas on how to this? Will be appreciated.
put an "apply force effect " within the buff behavior you just specified on the periodic field , setting the perodic time interval will determine the pace at which this unit is drawn towards you. Also for the apply force effect use negative numbers to get it to come towards you.
Thats it in a nutshell.
Tentacle missile can be a little tricky. For this specific spell, it should be enough, if you check the "return"- flag for your missile launch effect, specify a return mover, add a return delay as long as your ability should last and base the missile actor off a tentacle missile.
The model used for the tentacle missile in the video looks like RoachTentacle (or similar), look it up in the previewer.
As Jinx said, the pull back is probably realized using apply force effects. To learn how o use them, have a look at the tutorial section and search for force effects tutorials.
Actually, I just used neural parasite from infestor's ability.