I’m trying to script in a major feature of our game, melee fighting. And if we could, we would want to stop the animation when it hits something, or to just simply use the trace to trigger the damage. So What I’ve seen so far in the trace nodes, they only fire once, and they trace only when you start it up. Not over a period of time which is what I want. The current solution is to trace every half second, and we could to every quarter of a second for more precision, but I don’t know how taxing that would be on the game.
Is there a way to hold a trace for a duration of time, say when you click the button until you get a contact. We have now two sockets, one for the tip of the blade, and one for the part where it meets the **** stock. And we trace between that.
We get the socket names, plug them into all the trace’s, and on mouse click we trigger several delays with different times. So it checks every so often, and returns true or false, and in the case of true, it stops the animation and blends back to the idle one. There has to be an easier way in blueprints to do this, cause this will get annoying when we will deal with combo’s and enemies as well.