Setting Network Owner for RPCs

I am trying to call RPCs on actors that are spawned in the world. I was wondering if there was a dynamic way of setting the owner for RPCs for those actors?

For instance if I have a bunch of AIs in the game that I can “select” and I want to issue commands to and have them execute an RPC.

You can’t set the owner. If you spawn them server side (which I guess) the server is owner. If you want to call an RPC on them, you need to get it to the runOnServer event via something where you are the owner of - this is mostly best to choose your playerController. Put in your Magic there, and you’re good to go