AI checking if random doors are open

I figured i have to use blueprint interfaces, but it seems that the enemy does not recieve the “meesage”. The result is, that I can change the state of the doors, but whoever sends the “message”, be it the player or the doors, nothing changes for the enemy

I am new to coding in general, so maybe I don’t know something crucial

So first the player character checks with which doors he interacts and then sends a message about the acording doors

The second one is the enemy, who should recieve the message and switches between the doors being colsed for him or opened

I feel i could make this code better, maybe it is just wrong and that’s why it doesn’t work. Idk

PS: Some word are in Polish, but i guarantee you, the names are assigned correctly