Not too sure what you mean but you could try making what you’re suggesting in a event graph, select all and then right-click “Collapse to function”.
Not too sure what you mean but you could try making what you’re suggesting in a event graph, select all and then right-click “Collapse to function”.