your casting to the wrong class. the error is telling you that bp_animcannon doesnt inherit from bp_pawncannon so what you should be casting to is the pawncannon class. im assuming that your trying to get a variable from the pawn right.
your casting to the wrong class. the error is telling you that bp_animcannon doesnt inherit from bp_pawncannon so what you should be casting to is the pawncannon class. im assuming that your trying to get a variable from the pawn right.