Efficiently Creating Multiple Traces for Different Objects

Hi!
Just wondering if there is a way to create a function that, by changing an integer, ‘duplicates’ the amount of traces with the ability to change the start and end point of the trace.
I apologise if that doesn’t make sense, but I’ll give a little context. I am currently creating a melee game that uses tracing for hit detection. I have set up attacks on the parent blueprint, however due to the different sizes of the weapons, I need different amounts and positions of traces. I was just wondering if there is a way to streamline this process as currently I am utilizing the same nodes over and over again which isn’t very efficient!
Thanks in advance!