How to use APlayerController::HiddenActors

My purpose is to hide certain actors to a specific player. I know using the APlayerController::HiddenActors this is possible, but i don´t know ho

Details: I have a class “player1” that inherits from character. I have an specific kind of wall that the player shouldn´t see. The wall inherits from Actor. I think that i have to somehow add the wall to the HiddenActors array, but I dont know how.

Thank you very much in advance.