I'd like to implement a cast time on an ability, but still allow the unit to move during the cast time. An example of what I am aiming for is the cast scorch while moving ability in WoW.
I've played around with the allow movement/transient stat flags and the start cast time stat, but no combination of these fields create the desired effect.
I don't think, this is possible with the standard cast times. However, you could use a behavior or persistent effect, which does nothing but delay the execution of your first "real" spell effect.
Use an effect-instant that applies a 1.501s duration behaviour and a 1.5s period time. Have the periodic effect be your scorch impact effect, and give the behaviour whatever validators you need to check if the unit has been "interrupted".
This is the nicest way you can accomplish this, and the only way to have the ability show a cast bar using the default SC2 UI.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello,
I'd like to implement a cast time on an ability, but still allow the unit to move during the cast time. An example of what I am aiming for is the cast scorch while moving ability in WoW.
I've played around with the allow movement/transient stat flags and the start cast time stat, but no combination of these fields create the desired effect.
Anyone have an idea of what I'm missing?
Thanks
I don't think, this is possible with the standard cast times. However, you could use a behavior or persistent effect, which does nothing but delay the execution of your first "real" spell effect.
I figured I could delay the cast of the ability with an effect, but then the player/enemy wouldn't be able to interrupt the ability correct?
you could do a while loop.
if unit has interrupt = false then
wait .00
set timer = timer + .0625 (1/16 of a second, gameloop)
if timer >= CastTime then
cast ability
break
Use an effect-instant that applies a 1.501s duration behaviour and a 1.5s period time. Have the periodic effect be your scorch impact effect, and give the behaviour whatever validators you need to check if the unit has been "interrupted".
This is the nicest way you can accomplish this, and the only way to have the ability show a cast bar using the default SC2 UI.