// Fill out your copyright notice in the Description page of Project Settings. #include "Beth.h" #include "BethCharacter.h" #include "FlashLightBattery.h" AFlashLightBattery::AFlashLightBattery() { GetMesh()->SetSimulatePhysics(true); } void AFlashLightBattery::OnPickedUp() { ABethCharacter* MyBeth = Cast(MyBeth->GetController()); if (MyBeth) { //Trying to do something here with the ref... } }