How to find a specific actor in a level?

I want to know how to find a specific actor in a level, without using the function GetAllActorOfClass() and without using the reference of the actor in level blueprint, because in a really big open world game, these two methods will be very time-wasting and unreliable. Are there any other faster and more efficient ways of doing so?

Thanks,

David

I don’t believe there is anything more efficient than directly referencing from the level to the level blueprint, could you give an example of what you’re trying to achieve?

one question you have to ask yourself is how YOU would find it, you as a totally blinded person. if you dont know the class and dont want to use a reference, its basicaly impossible to tell the game to find it.
now, what specifically you want to find? an actor can be a cube on the floor, a bird, a boss a player, an npc. if you want to find a player and its multiplayer, Gamestate has an array of player, each one has a playerId (which you can have on login). anything else im not sure…you would have to tag them, do a Get All actors of class and compare the tag.

Use tags or GetAllActorswithInterface

As long as you aren’t using those calls every frame, you should be fine.

1 Like