So has anyone figured out how they make the flares whatever color your flare gun is painted? I have looked all over the projectile and flare gun bp’s and don’t see anything different that makes that happen. Would love to be able to change Laser and Lightsaber colors that way for Stark Wars.
For the lighsaber you can setup a colormap and make the blade paintable. If it has some particle effects they need to have a color parameter set up. You can then change the particle color depending on the blades painted color.
For the projectiles it comes down to the same process except you will have to reference back from the projectile to the weapon to get the painted color from the weapons material. I don’t know if there is another way but i experimented with this a bit and this is what i came up with:
I used the rocket launcher projectile for this. I added the flare particle system to it because it already has the color parameter(“CustomColor”). It colorizes both the rocket static mesh, aswell as the particle system to the color that the weapons first region is painted.
As always only lightly tested and just a proof of concept.
The projectiles work perfect, still struggling a bit with the sabers.
So I reworked the sabers to have a particle system instead of the emissive texture I was using and got it working!
I was trying to find a way to add the custom parameter to the “initial color” instance when it needs to be and seems it can only be set on the “color over life”. Works like a charm! Once again you did it! Thanks Mezzo!
Got 1 more for you, I have these walls - and would like to make the white area color able as well. They use essentially the same material for the emissive as the projectiles and I already have the custom parameter setup in the material but am not 100% sure how to “cast” it to the walls since it is not a weapon. I have tried several other “casts” but none have worked. I know you will have the answer as always!