I very recently got started with Unreal Engine and am currently trying to make a shooter to learn the engine. I’m having a problem with my damage logic, where while the apply point damage node is only called once on a hit, damage is registered multiple times. I’ve tried to set up multiple systems to stop this, but none seem to do anything.
Does anyone have an idea of what might be going on?
Thank you in advance. Any ideas and feedback on how everything could be improved, as well as suggestions on what I’m not doing properly, are also appreciated.
Can you show us the logic before the MultiLineTrace? Also unless they are penetrating things you could probably just use a standard LineTraceByChannel, that might be it right there tbh.
But it is possible that because this looks like it should reset itself every frame, you’re getting multiple hits because it’s allowing a hit each frame.
Can you show where you put this? There are definite ways you could only get one return print for something like this occurring more than one time in succession, such as on “Pressed”. Also the Multi-line trace might be hitting multiple collisions on the enemy such as Capsule, Static Mesh AND multiple parts of the Skeletal mesh could be doing it!
Maybe try printing “Hit Component” to see if it’s different components!