I am still pretty new to Unreal 4, and i’m doing a test on the FPS template where a moving object turns red when the player shoots it, and turns green when the player walks over and touches it, but the event graph won’t allow the hit event node to connect to two targets. So I tried making a child class with its own hit event. It inherited everything else, but it looks like it overwrote the parent class’ hit event. So when I use it, it turns green, but it doesn’t turn red when I shoot it. Could someone help me out please?
it sounds like your trying to connect the onhit node to multiple nodes. to do that simply use a sequence node or a switch node. the sequence will run its exit pins in order 1, 2, 3, etc.
Though in your particular case a sequence may not be needed. if you have only a few things that could cause the hit then you could just check if the hit actor was the player character or if it was of the projectile class. the picture below shows one way of accomplishing this. I used a set material in this example but it would probably work better to create a dynamic material instance and just change a color vector parameter.