How to save an integer value from a destroyed actor (Battery power system)

So I did a set battery from the character bp, with the drone integer value from the drone bp, is this what you were meaning?