Getting variables from an NPC

I’m working on something similar and this part has me stumped, I’m using a multispheretrace and want to cast to ojects hit, determine if they have an interactivity function and then and then Fire only the one with the highest noted priority if I’ve traced multiple hits, how do i go about viewing those potential variables?