Now you’ve declared it as global scope (within your cpp file only) function instead of member of your UOpenDoor class.
Add this declaration to your header file:
void OpenDoor();
And modify your implementation to include UOpenDoor:: in front of your function same. So it’s
void UOpenDoor::OpenDoor()
instead of:
void OpenDoor()