Failing to Cast

So I have a trigger box that adjusts my camera as the player moves in and out of it. However, I am also attempting to cast to another actor named “Locker” to call a function that the Locker has. When I use my print string it keeps indicating that the cast simply isn’t working, but I’m not getting any errors. Any advice?

The blue note at the bottom of the cast probably indicates that the variable is already of type “Locker” and that the cast is not needed. Hover over it and check.

Just be sure it is a valid variable (use isValid node) before calling any functions on it.

Then just call the function “Remove Text” directly on the variable Locker.

1 Like