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.
1 Like
What GPT is saying is, drag from this
and get the slot index which should be a parameter on that custom event node.
I don’t know if that makes sense. If it doesn’t, that’s pretty typical GPT…
2 Likes
(post deleted by author)
maybe i just have this set up incorrectly (also i kind of suck at this stuff) but when i try and grab from the grid slots array i cant get the slot index i don’t know if i need it set up as its own var or something
ohhh i see what your saying, okay I apologize for my confusion
1 Like