I’ve been trying to create an effect where the enemy flashes / glows when it takes damage with no luck. Damage system works and everything, I’m just having trouble creating this effect. I’m not very familiar with material functions.
Your material needs a vector parameter for the flash color, that will be added to the regular material colors before feeding into the final master material node.
Then when your pawn BeginPlay, create a Material Dynamic Instance of the material from the component it is on, and store it as a variable.
Then when you need it to flash, you can take that Material Dynamic Instance and Set Vector Parameter to change that additional color, Try something like 5,5,5 for a white glow. Then you have to turn it off again a short time later, and it give the impression of flashing.
There’s other ways but that’s probably the second easiest.