I'd like to know if it is possible to make an ability such as Psi storm or EMP to be auto-cast while the caster is moving.
I' ve already managed to make the CPU units auto cast those spells while attacking (even though if they are just moving, and not attacking, they never cast it).
I'd like the cpu units to auto cast those spells while moving, when an enemy is near. Or stop, cast the ability, and then resume the previous order.
Also, is it possible to make a melee unit attacking while moving? (if the target is on melee range)..
For your first question you need the transient flags to allow casting while moving without canceling the move order. Rest is how you set your autocast filters and validators. As for your second question just adjust the legacy flags of the weapon so they are similar to the diamond back. Also consider increasing the arc of the weapon.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
The transient flag is your way to try it, but it is a pitty it creates a shitload of bugs the most of times and units are starting to behave very strange
As i stated before, the goal is to have a CPU unit with a trigger-given order "move" from A to B, that attacks while moving with its weapon AND used (for example) the EMP when possible (when the cooldown is over).
If i add the transient flag, the unit never cast the ability (i tryed the EMP (my auto cast version)), but can attack (the attack while moving works).
If i remove the flag, the unit doesnt even attack, just moves.
If i remove the weapon from the unit, and remove the transient flag, the unit can cast the EMP (and keeps the move order anyway).
Just make a weapon with all the effects of PSI storm, allow the weapon to be fired while moving, and add that weapon to the unit. Make all the numerical adjustments you need (range, cooldown, etc), and you should be good to go.
At least that's what first popped into my mind with this question. You can hide the weapon from showing up on the UI too, if you want.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi,
I'd like to know if it is possible to make an ability such as Psi storm or EMP to be auto-cast while the caster is moving.
I' ve already managed to make the CPU units auto cast those spells while attacking (even though if they are just moving, and not attacking, they never cast it).
I'd like the cpu units to auto cast those spells while moving, when an enemy is near. Or stop, cast the ability, and then resume the previous order.
Also, is it possible to make a melee unit attacking while moving? (if the target is on melee range)..
Thanks !
Nite
For your first question you need the transient flags to allow casting while moving without canceling the move order. Rest is how you set your autocast filters and validators. As for your second question just adjust the legacy flags of the weapon so they are similar to the diamond back. Also consider increasing the arc of the weapon.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
The transient flag is your way to try it, but it is a pitty it creates a shitload of bugs the most of times and units are starting to behave very strange
Well then simulate the ability with a periodic buff that uses a search area to apply the effect directly.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Hi, Thanks eveyone for help.
Anyway i m still having troubles :
As i stated before, the goal is to have a CPU unit with a trigger-given order "move" from A to B, that attacks while moving with its weapon AND used (for example) the EMP when possible (when the cooldown is over).
If i add the transient flag, the unit never cast the ability (i tryed the EMP (my auto cast version)), but can attack (the attack while moving works). If i remove the flag, the unit doesnt even attack, just moves. If i remove the weapon from the unit, and remove the transient flag, the unit can cast the EMP (and keeps the move order anyway).
ideas? ^^
thanks,
Nite
Just make a weapon with all the effects of PSI storm, allow the weapon to be fired while moving, and add that weapon to the unit. Make all the numerical adjustments you need (range, cooldown, etc), and you should be good to go.
At least that's what first popped into my mind with this question. You can hide the weapon from showing up on the UI too, if you want.