How to input parallel actors in one function


This question is pretty direct. I want to reproduce this multiple input in node, but with a custom function instead (all nodes inside the function accept this behavior). Is this possible?
Also I’m sorry if my question title isn’t clear, I couldn’t put in better words.

Thanks in advance!

I think make a variable -object array. then add a forloop to go through each one to set hidden.