I can make a simple hook spell, but when it needs to follow caster im a bit lost...Like you hook a unit and start walking away, the hooked unit will still come to the casters point.
I would also like it to look smooth and realistic when caster walks away there wont be any sharp angles for the hook. The hooks like will bend and make the spell look smoother.
Any ideas? tips? how to do this? No need to describe the basics of the spell. I just want to do should I store some info on variables? like points periodically where the hook goes....
If you dont know what hook spell is, check youtube for pudgewars/pudge
EDIT*
I actually managet to make a working hook spell, but the angle problem remains. It looks ugly :/. I want it to be as smooth as in pudge wars hook, dunno how I would do that tought....I used dummy units as hooks and put the to unit group, dont know if thats a good way to do a hook spell...I wonder if there is some formula that would be good to check distance/angle between hero and dummy unit to make it look better.
I can make a simple hook spell, but when it needs to follow caster im a bit lost...Like you hook a unit and start walking away, the hooked unit will still come to the casters point.
I would also like it to look smooth and realistic when caster walks away there wont be any sharp angles for the hook. The hooks like will bend and make the spell look smoother.
Any ideas? tips? how to do this? No need to describe the basics of the spell. I just want to do should I store some info on variables? like points periodically where the hook goes....
If you dont know what hook spell is, check youtube for pudgewars/pudge