Download

C++ Strange problem with closing door when actor end overlap

Guys, I have strange problem I am learning c++ and I want to make door open on begin play (this works) and closed when player end overlap the trigger. I have only one scrpit. Player is in this trigger when start game.

CPP
https://gist.github.com/MonteverdiPL/992eb62fcfee5e249731c20dee13c48f

.H
https://gist.github.com/MonteverdiPL/e4fe112feaa294c3cb2e0dca12cbce41

The problem is that my VS2017 underline and get error here (PHOTO)
Someone can help me plz :wink:

1.I know that my variables is not in English
2.I know that making it in BP is better and easier