I want to create a normal weapon which, as a a added effect, pushes back its target. I understand I need to use forces for this, but have no idea how to attach them to a weapon - I have seen and followed this tutorial about forces but have no idea how to attach the effect to a weapon.
I don't know if it is necessary to know this to answer my question, but I would love it if the push back has splash damage - ie: doesnt just target the unit the weapon user targets but also units nearby.
Just make your force "ability", and instead of making it an ability, make a weapon and set the weapons effect as its first effect. If you want an AoE force effect, just use a search area effect that applies the force.
There are wiki articles covering the weapons and the damage effect. I recommend you read them to figure what fields you need to modify.
I advise making a Set effect for the weapon that has a Damage effect with splash and Create Persistant which performs a periodic Search Area that then applies your Apply Force effect.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I want to create a normal weapon which, as a a added effect, pushes back its target. I understand I need to use forces for this, but have no idea how to attach them to a weapon - I have seen and followed this tutorial about forces but have no idea how to attach the effect to a weapon.
I don't know if it is necessary to know this to answer my question, but I would love it if the push back has splash damage - ie: doesnt just target the unit the weapon user targets but also units nearby.
Thanks in advance!
Just make your force "ability", and instead of making it an ability, make a weapon and set the weapons effect as its first effect. If you want an AoE force effect, just use a search area effect that applies the force.
There are wiki articles covering the weapons and the damage effect. I recommend you read them to figure what fields you need to modify.
I advise making a Set effect for the weapon that has a Damage effect with splash and Create Persistant which performs a periodic Search Area that then applies your 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