Hey Skullzz098-
Could you elaborate on what behavior you’re getting with the code you provided? Also, is AFlashLightBattery a child of APickUp? I ask because the two lines with “Cast” both cast the SelectedActor to the specified class. Unless AFlashLightBattery and APickUp have some sort of parent/child relation only one of the casts will be successful. Additionally, can you explain what class this code exists in? I’m not sure what “this” in your code is referring to (actor, character, etc).
Cheers