How to set trigger to work with player only?

You don’t need to do all the casting for the player character, there is a node for the player character that saves you from having to do that. For other actors, yeah, you’ll need to cast.