I was wondering if there was a way I could get an instance index from a “OnComponentBeginOverlap” event?
I’m trying to detect when a player is overlapping a item on a shelf and if it is, then pick it up. I’m using a HISM because there will be a lot of items so I need to optimize it.
Hi, break the hit result from the “Sweep Result” of the on component begin overlap.
I’m not 100% sure tough that the hit result from the on component begin overlap contains a valid “Hit Item” (as far as I know it has less valid outputs than a hit from a trace).
If the “Hit Item” from the on component begin overlap is not valid, you could do a multi line trace for objects and loop through the results until you get the one the on component begin overlap has returned and get the “Hit Item” from there.
for anyone might have same mistake like me,
the overlap event should be in another component, not in instance component.
well it was obvious one but just in the case there are someone like me haha.