This is kind of hard to explain but I try.
I have a trace that captures the name of the object it hits and sets it as a String variable.
Another action then happens based on what is written in that string variable.
It works just as I want.
Except, the trace reads the actor names in way of “ExampleActor_Blueprint_C_1.ExampleObject”.
I only need the “ExampleObject” part of that to make it work. So, I use a string replace node, that takes
the beginning of the string away, and everything works perfectly again.
Except that at the part of “C_1”, the number changes from a game restart to restart. Sometimes it is C_0, sometimes C_2.
The string replace node is picky and wont take that prefix away unless its just the way written in it.
- -mark in the spot of the number doesnt do the trick either. Note that there actually is only 1 of those blueprints and actors ever
used. Name would never collide with something else in my game even if I set it fixed.
Thanks for any help.