Can I get an explanation with what I'm doing wrong?

To get the defaults, for example, the WeaponName property, you can use one of these:


AAWeapon::StaticClass()->GetDefaultObject<AAWeapon>()->WeaponName

or


WeaponToPick->GetDefaultObject<AAWeapon>()->WeaponName