Thank you for your answers!
@SixTwo:
Your solution works but the player can only teleport.
In my logic, it is the player who hits the objects (he interacts with the environment), and it is the scene’s actors who contain their characteristics.
For example, in the scene, there is a positionpoint and a door.
The player can hit the door or the positionpoint. It uses the raytracing to hit one of these two objects.
The objects when they are hit, trigger their events and functions.
So if the player hits the door, the door opens or closes (because it contains the blueprint for open or close).
If the player hits the positionpoint, he is teleported (because the positionpoint contains the blueprint to teleport).
If there are several possible interactions, I do not think the player’s blueprint should contain all the functions of the objects in the scene.
You see what I say? I do not know if I explain myself well
@Orkney:
I can’t find the function. I see Get Hit Result under Cursor by Channel but i can’t use it because the node is not proposed.
Thanks.