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!
ionsfx.shp - please help
Need some help with triggering "ionsfx.shp"
Re: ionsfx.shp - please help
https://github.com/OpenRA/OpenRA/blob/f ... #L229-L233 and the file itself must exist.
Re: ionsfx.shp - please help
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
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