I have 3 medics at half health moving between two regions:
Events
Unit - Any Unit Enters East
Actions
Unit - Order (Triggering unit) to ( Move targeting (Random point in West)) (Replace Existing Orders)
I want them to heal themselves while moving. To this end I changed the ability "Medic - Heal"
Ability - Arc: 360
Stats - Flags: Abort On Alliance Change, Allow Movement, Auto Cast, Auto Cast On, Best Unit, No Deceleration, Passenger Acquired Passenger, Re-executable, Require Target-Vision, Smart, Transient, Wait to Spend
(I added Transient.)
One can now manually cast a heal, but the heal does not continue (i.e. one has to cast it again and again). How can I fix this?
Transient doesn't work for Effect - Target abilities, which is what the medic heal is.
It's also channeled, which further prevents movement since moving while channeling will cancel the ability unless it's set to be uncancellable (Yamato Cannon).
There's not a nice way to do this unfortunately. If you really must have this, make a behaviour which does a periodic search at 0.125s intervals. This behaviour will trigger a search effect. Place the medic validators and target sorts in here, and the desired range. The search effect will trigger a set effect which will apply a modify unit effect, and restore the desired vital along with a second modify unit effect, which removes the medic's energy.
To make the beam, check the Point Defence Laser (it has a timeout rather than relying on a persistent or weapon start/stop). Set the duration of the beam to 0.125s.
If you want a sound for this too, have a 3rd effect in your set which applies a dummy behaviour. This behaviour lasts 0.25s. Make 3 sound effects. One for when the behaviour is applied, one for during, and one for when it expires. Place the appropriate heal beam sounds here.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi,
I have 3 medics at half health moving between two regions:
I want them to heal themselves while moving. To this end I changed the ability "Medic - Heal"
One can now manually cast a heal, but the heal does not continue (i.e. one has to cast it again and again). How can I fix this?
Thank you for your consideration.
PS: You can find my testcase map here.
Transient doesn't work for Effect - Target abilities, which is what the medic heal is.
It's also channeled, which further prevents movement since moving while channeling will cancel the ability unless it's set to be uncancellable (Yamato Cannon).
There's not a nice way to do this unfortunately. If you really must have this, make a behaviour which does a periodic search at 0.125s intervals. This behaviour will trigger a search effect. Place the medic validators and target sorts in here, and the desired range. The search effect will trigger a set effect which will apply a modify unit effect, and restore the desired vital along with a second modify unit effect, which removes the medic's energy.
To make the beam, check the Point Defence Laser (it has a timeout rather than relying on a persistent or weapon start/stop). Set the duration of the beam to 0.125s.
If you want a sound for this too, have a 3rd effect in your set which applies a dummy behaviour. This behaviour lasts 0.25s. Make 3 sound effects. One for when the behaviour is applied, one for during, and one for when it expires. Place the appropriate heal beam sounds here.