I am trying to get a variable from a struct at a clicked location on a grid

CodeVapor1
Wed, 07 May 2025 04:41:45 +0000
Blueprint

I asked chatgpt for a little help with not looping though every slot i have in the grid and instead just getting the index from the slot i clicked on, but it told me to get the array of structs(in my case the Grid_Slot struct) from the elements tab, the issue with this is it wants me to get the “Slot index” variable that is being passed into my custom event as seen below. but when you “get” the struct its not like it has input pins.

if you guys have any advise or a better way of explaining what it suggested i would really apricate it.

5 posts - 2 participants