There’s no “break struct” for C++, that’s a BP convention. You simply need to create an instance of your struct and populate the values…something like this
FST_ItemTypeAndID TmpItem;
for (int32 i = 1; i <= WeaponItemDatas.ProbabalityPercent; i++)
{
TmpItem.Type = blah;
TmpItem.ID = blah;
Arr.Add(TmpItem);
}
Of course I don’t know if you’re using proper naming conventions but your struct should have an ‘F’ at the beginning like I have it in the example above…and of course replace the blah’s with actual values