Hi,
I have actor by name in my Set variables, but I can’t get actor by name, only index actor. Is this possible?
Hi,
I have actor by name in my Set variables, but I can’t get actor by name, only index actor. Is this possible?
Since the output is an array, you can only use operations that work on arrays. So there aren’t any options for getting by names, other than using a ForEachLoop to go through each element and comparing the object name.
Give the actor a tag and GetAllActorsWithTag.
Or, you know, reference stuff *properly *so you don’t need to use GetAll for searching - an indication of poor choices at the design / logic level.
Everyone and their mother who were advised to GetAll because they couldn’t find *Target *for the *Cast *node hit this very brick wall.
Where are my chill pills when I need them most…
If I used Tag I need for each “Blueprint_Chair_Sitting” to modify tag? Is possible to make Set Tag with the name? The reason is if I have a lot of Blueprint_Chair_Sitting maybe I forgot to add tag?
Tag can be ok, but with without add tag manually?
You can set tags manually or dynamically:
How would *we *know that? You can add tags to individual components, too, btw.
Would you like to share what you’re trying to accomplish so a better / proper suggestion can be offered. Perhaps GetAll is what you need, perhaps it is not; and a simple & robust solution is available.
Hi i’m not able to getting what you mean.
I will explain what I need to do:
If you can see I have two error. I used get all actors of class and I add Blueprint_Chair_Sitting and then Get a copy and its works. Problem is because I can’t get index from Blueprint_Chair_Sitting. This is problem because always I got index 0… It’s problem because I need to use specific where I need to sit down.
So question is how can I get from Blueprint_Chair_Sitting to ThirtPersonCharacter(second pic). I can use tag, name or index. It’s not problem for me, only how can I resolve my problem?
How do you choose which chair to sit on? What’s the scenario, the player approaches the chair and sits on the chair they overlap with? Why not this in the player: