Is it possible to target multiple targets but not all?

There will be heavy use of this code in the project I’m working on so I’m trying to minimize overhead by only making calls to the required actors.