Having Trouble Creating a Struct for Weapons

I guess it’s because the compiler doesn’t know what AHitscanWeapon is.
Try

UPROPERTY()
class AHitscanWeapon* WeaponRef;

Yeah, it turns out I just needed to forward-declare it! Thank you so much, this was driving me crazy!

2 Likes