Keeping loadout between game levels

Hi there,

It is true, however, if you want to save your loadout, you want to save a reference to those weapon “classes”. For instance, you can save an array of weapon classes, then you use a “for each loop” to “spawn actor from class” and “attach actor to actor” to attach those weapon “instances” to your player sockets.

If you weapon parent class is BP_MasterWeapon, find a variable type BP Master Weapon class, a purple one.

Hope that makes sense.

Now, if you need to save-load ammo information, the logic is the same, for each weapon you want to store spare ammo, ammo in magazine, in the case of firing weapons. The logic will apply for any other variable you want to save per weapon.