/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h
This exists so subclasses don't need to have direct access to the bCanBeDamaged property so it can be made private later.
bool CanBeDamaged() const