Page 1 of 1

ionsfx.shp - please help

Posted: Mon Apr 12, 2021 2:32 pm
by Yoghurt
Hello everyone,

I've created a mod where a unit has the Ion-Cannon as it's weapon (attacks within the vincinity of the unit, just like any generic weapon and unlike the superpowers).

I have copied the code of the weapon and added it to my map's weapons.yaml, added a couple lines of code and it works fine, however what's missing is the sequence "ionsfx.shp".

Could anyone please tell me how I can trigger this sequence together with the actual attack?

Thanks in advance!

Re: ionsfx.shp - please help

Posted: Sat Apr 17, 2021 3:06 pm
by Matt

Re: ionsfx.shp - please help

Posted: Thu May 13, 2021 4:32 pm
by Yoghurt
Thanks for the reply. I don't understand, how do I trigger the ionsfx.shp sequence before the actual explosion? Is InstantHit the right way to go in weapons.yaml?

Re: ionsfx.shp - please help

Posted: Fri May 14, 2021 9:47 am
by abcdefg30
I'd try using a CreateEffectWarhead that triggers the sequence you defined and add a "Delay" to the warhead doing the damage and the warhead doing the explosions. The nuke explosion is an example for a weapon which has delayed effects and damage warheads: https://github.com/OpenRA/OpenRA/blob/f ... ml#L16-L24