Assistance on Making a Picking System

Hello,

I am trying to make a first person Order Selector game where you pick boxes from the specified locations, place them on the pallet and send the pallet off to finish the job.

Does anyone have any ideas on how I could make this picking system a little easier for me to blueprint as I am trying to make every pallet interactable to pick up a box so I can make an RNG picking system and I don’t want to have to code every pallet because I have 26,000 pallets in the game.

Starting with basics, you only need to code one pallet, then put a lot of them in the scene.

Object orientated like this is the way to go, not doing something in the level BP etc?

How would I be able to make it so the pallet that you place the boxes on knows what boxes are on it and what location they are from?

You need to make that part of the pallet code ( for this one pallet ).

I would advise using the save game.

When you put the stuff on the pallet, it writes to the save game what you have done ( it only needs to know about it’s own contents ). Each pallet has an ID, it can just be an integer.

There’s a number of ways you can do the save game. First of all, you’ll almost certainly use and array of structs. Each struct would be your basic ‘pallet contents’ type thing.

Item name, item amount, date loaded etc

Then, for each pallet, you have an array of these structs.

For the whole save game, I would avoid using an array of arrays of structs. Too difficult, and might be buggy. I would either go for one of

. Save game file for each pallet

. Dictionary of array of structs

Probably the second, the pallet can use it’s ID as the key to the dictionary, and find it’s own array that way.

Ok, thanks. I’ll give it a try