Use cache.instance.PreferredPrimaryWeaponTargetID instead...