I've looked at the few threads here asking about similar abilities (such as this one, which I don't really have the knowledge to decipher), which involve moving the caster unit a certain distance in the specified direction. My current goal is an ability that, when cast, allows the player to click a target point, which then causes the unit to dash towards that point until it has traveled X units OR until it collides with another unit.
What I've figured out so far is that Apply Force doesn't relocate units so much as it commands them to move away or towards a point, and a Create Persistent effect can be used to run an effect multiple times with offsets and such. What I'm thinking is, so far, I'll need to somehow create a positive Apply Force behind the unit (or a negative one in front of it) that is fired off periodically through a Create Persistent, while applying Buff that raises minimum movement speed and periodically fires off a Search Area that Destroys Persistent and removes itself when it spots an enemy unit.
Where I'm currently stumped, is how the Create Force would interact with the Create Persistent (which I know very little about). I tried making a Create Persistent which creates a line of Search Areas in front of the caster that apply a negative Apply Force, but that didn't work (and applying a positive Apply Force makes the casting unit move slightly south then stop), and am generally stumped on what to do. Has anyone else dealt with an effect like this?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've looked at the few threads here asking about similar abilities (such as this one, which I don't really have the knowledge to decipher), which involve moving the caster unit a certain distance in the specified direction. My current goal is an ability that, when cast, allows the player to click a target point, which then causes the unit to dash towards that point until it has traveled X units OR until it collides with another unit.
What I've figured out so far is that Apply Force doesn't relocate units so much as it commands them to move away or towards a point, and a Create Persistent effect can be used to run an effect multiple times with offsets and such. What I'm thinking is, so far, I'll need to somehow create a positive Apply Force behind the unit (or a negative one in front of it) that is fired off periodically through a Create Persistent, while applying Buff that raises minimum movement speed and periodically fires off a Search Area that Destroys Persistent and removes itself when it spots an enemy unit.
Where I'm currently stumped, is how the Create Force would interact with the Create Persistent (which I know very little about). I tried making a Create Persistent which creates a line of Search Areas in front of the caster that apply a negative Apply Force, but that didn't work (and applying a positive Apply Force makes the casting unit move slightly south then stop), and am generally stumped on what to do. Has anyone else dealt with an effect like this?