Hi I'm looking to create an ability that when cast from the unit, uses the sentry shield spell effect, and concurrent with the expansion of the shield, it will push every other unit away from the caster to the edge of the radius, and then this effect will remain on the character for the duration (no units can re-enter the area until the shield dies). I'm assuming to push the units away I'd need to do something with the offset in the effect perhaps, but I've no clue how i'd get them to remain pushed back.
Would appreciate help.
PS: The field will move with the character if it moves, and it isnt't channeled.
When the ability is activated
Persistent Effect Periodically every 0.1 seconds for duration (e.g. if it's 10 seconds you need 100 number of periods) ->
Search - enemy units in radius (radius = shield radius)
->
Persistent effect for 0.5 seconds 0.1 sec periodically
->
Apply force (any positive number, preferably larger than 100)
DONE
Well...
To code this you need to work backwards making apply force first
->
persistent effect (link it to the apply force)
->
search (linked it to persistent effect)
->
persistent effect (link it to search)
You can alter the casting unit a little bit... if you remove collision Ground Unused 9 (I think) your unit can pass through Force Field just fine. Any units that do still have Ground Unused 9 will be pushed away.
Then just have a trigger that moves the Force Field onto your unit in case it moves.
Edit: Oh, you're using Shield, not Field. I mix those up a bit.
Well, you can create a copy of Force Field and make it invisible, and still run the shield visual effects.
Hi I'm looking to create an ability that when cast from the unit, uses the sentry shield spell effect, and concurrent with the expansion of the shield, it will push every other unit away from the caster to the edge of the radius, and then this effect will remain on the character for the duration (no units can re-enter the area until the shield dies). I'm assuming to push the units away I'd need to do something with the offset in the effect perhaps, but I've no clue how i'd get them to remain pushed back.
Would appreciate help.
PS: The field will move with the character if it moves, and it isnt't channeled.
When the ability is activated
Persistent Effect Periodically every 0.1 seconds for duration (e.g. if it's 10 seconds you need 100 number of periods) ->
Search - enemy units in radius (radius = shield radius)
->
Persistent effect for 0.5 seconds 0.1 sec periodically
->
Apply force (any positive number, preferably larger than 100)
DONE
Well...
To code this you need to work backwards making apply force first
->
persistent effect (link it to the apply force)
->
search (linked it to persistent effect)
->
persistent effect (link it to search)
@zifoon: Go
thanks a bunch :D
You can alter the casting unit a little bit... if you remove collision Ground Unused 9 (I think) your unit can pass through Force Field just fine. Any units that do still have Ground Unused 9 will be pushed away.
Then just have a trigger that moves the Force Field onto your unit in case it moves.
Edit: Oh, you're using Shield, not Field. I mix those up a bit. Well, you can create a copy of Force Field and make it invisible, and still run the shield visual effects.
I want to do something similar to this, but only when a unit attacks the other unit.
Unit A -> Retaliate ability on autocast Unit B -> Attacks Unit A Unit A -> Has energy, Retaliate ability is called on Unit B
@voltechs:
Check the HYBRID C abilities, as there is something simular to what you ask for on it.
It has an Arcane explosion like effect and does knockback.
(havent got the editor open - but i saw it earlier!)
AHAHAHAHA! Perfect! Thanks Torrak, you rock.