Thanks @kamrann it compiles now. i think i will have to play around with what class to put in the TSubclassOf template but i think this will work just fine.
i can’t mark your comment as the correct answer so you’ll need to turn it into an answer first Thanks very much for all the help guys @Rama, @BaderThanBad