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