Code keeps failing

Here is my code. Does anyone know why it keeps outputting “Fail”?


The name is correct btw
image

Use print string directly on the Actor variable and see what it outputs, there’s the answer.

I’ll try it tomorrow. I’ve gotten off for the day. I’ll let you know the output

Thanks man! It worked. Turns out it has some weird lettering after it (NameOfCharacter_C_SomeNumber) and I got it working now. Thanks!

This is dynamic. You could use a more reliable way to refer to a character “A B or C” by giving them an ID like a GUID, storing pointers to them or simply by storing all actors in an array and looping over the elements of that array.

I didn’t pick those numbers.