As the title says i want to make an ability that pushes away units in front of my hero.
I tried to do it by following this tutorial
I did everything like it works in the ground pound ability in this tutorial beside the part that makes your unit jump.
I have 2 problems:
1) my units are always only pushed away a little and increasing the number of periods of the persistent effect does not help
2) I dont want units in an 360° angle to be pushed away. Only units in front of the hero should be affected. Setting the arc of the search area to 180° does not solve the problem. If i do this the ability sometimes pushes units and sometimes doesnt and i dont understand under what condition it pushes the unit, but its definetly not always pushis units in front of the hero like it should.
Do you use a Modify Unit effect or the like to lift the units up? Apply Force effects don't work properly if the unit is touching the ground.
Look at Hybrid Maar's schockwave ability. All you have to do is set the angle to 180° or less, and make sure it's using the local reference frame of the caster unit instead of the global coordinate grid. (which I believe is the default if the effect is hosted on the unit and not the "point")
I think units speed affects how far away units are pushed for each force applied, so apply behavior that changes pushed units speed to something higher to make him fly away faster and further.
For second I would instead make it a targetable ability (like rayrors railgun), but I haven't played with arcs.. at all, so probably someone more knowledgeable should tell you what to do :D
@ Photoloss
Yes i lift he units up before i apply the force.
For testing purpose i have now modified the hybrid shockwave and set the angle to 180 and target source to casting unit. My problem is that the shockwave now only hits units behind the hero and nor in front of him. Any idea how to fix this?
@DrSuperEvil: Go
can i modiefy the mass of a unit? And how do you increase the magnitude of a force effect, as far as i know it makes no difference if you tipe 1 or 50 in the apply force field in the editor.
As the title says i want to make an ability that pushes away units in front of my hero. I tried to do it by following this tutorial I did everything like it works in the ground pound ability in this tutorial beside the part that makes your unit jump.
I have 2 problems: 1) my units are always only pushed away a little and increasing the number of periods of the persistent effect does not help 2) I dont want units in an 360° angle to be pushed away. Only units in front of the hero should be affected. Setting the arc of the search area to 180° does not solve the problem. If i do this the ability sometimes pushes units and sometimes doesnt and i dont understand under what condition it pushes the unit, but its definetly not always pushis units in front of the hero like it should.
Do you use a Modify Unit effect or the like to lift the units up? Apply Force effects don't work properly if the unit is touching the ground.
Look at Hybrid Maar's schockwave ability. All you have to do is set the angle to 180° or less, and make sure it's using the local reference frame of the caster unit instead of the global coordinate grid. (which I believe is the default if the effect is hosted on the unit and not the "point")
@Karradar: Go
I think units speed affects how far away units are pushed for each force applied, so apply behavior that changes pushed units speed to something higher to make him fly away faster and further.
For second I would instead make it a targetable ability (like rayrors railgun), but I haven't played with arcs.. at all, so probably someone more knowledgeable should tell you what to do :D
@DuckyTheDuck: Go
The distance actually depends on the unit's mass.
Mass and the magnitude of the Apply Force effect.
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
@ Photoloss Yes i lift he units up before i apply the force. For testing purpose i have now modified the hybrid shockwave and set the angle to 180 and target source to casting unit. My problem is that the shockwave now only hits units behind the hero and nor in front of him. Any idea how to fix this?
@DrSuperEvil: Go can i modiefy the mass of a unit? And how do you increase the magnitude of a force effect, as far as i know it makes no difference if you tipe 1 or 50 in the apply force field in the editor.
Units which are attacking can ignore forces. You might try cloaking your hero while testing to see if this affects things.
Under the Units data type is the Stats - Mass field.
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