Hi,
does anyone know what this error means and how to fix it?
Hey there @Godlike0207! The variable As “BPThirdPersonCharacter” hasn’t been set before this is called. That variable must be set before you can call anything on it. You likely created that with a cast correct?
yes, but what do I have to change there exactly, so that this error disappears?
Could anyone help me, please?
So you need to set that reference before you call those ticks. You can do this a number of ways, but here’s a quick one.
So it’s setting the reference on beginplay, but also there’s what’s called a “Validated Get” node which makes sure there is a reference before continuing the tick. To use that node, pull a get reference out to your variable, then right click it and “Convert to validated get”.
thank you very much, it worked very well !