Hi, fairly new to UE5.
So I wanted to make copy of bunch of actor/enemies. I copied them, ctrl+c and +v style.
Then I realized,
“how does one get to know which one my character is interacting with?”
I decided to try something like this:
But the order of indexes are seemingly random or its in the order of me “spawning/deleting/respawning/etc.”
How do I know which index is which actor on copy of actors?
Is there a setting I can go through to setup the “indexes” individually in the “outliner” ?
So usual play of events is collider begin overlap tells both player and npc they are in range. Then the npc could display an interact button to click to talk.
Either way each actor KNOW who the other is as each one is a seperate object. Only the 2 interacting actors (player and npc) knkw about each other right now. You do not need to distinguish or check as such as the actors are exposed in the overlap.
So unless im misinterpreting what your need and theres something im missing the Begin Overlap and End overlap along side some event to interact should give you all you need.
Right now for example, whenever I destroy one of these actors, then save my game, I want to let my saved game know which one of these that I destroyed for the time I will load the game back up.
Atm I don’t know how to tell which of the 6 “huntresses” I killed. So when I load it back, I don’t know how to tell my game that “the actor at position X was destroyed don’t load that one”
When you destroy the huntress in game, destroy the actor so it no longer exists.
As far as remembering things , each npc can rememebr its own interactions. As far as player remebering you can keep an array or something to store a reference to the actor along with whatever else you need to remember