Trouble Using Local Variables in Blueprint

Hey everyone,

I recently tried switching some of my Blueprint variables to local variables to avoid manually updating them across duplicated functions. But I ran into this error:

“Variable set (local variable) uses an invalid target. It may depend on a node that is not connected to the execution chain and got purged. Property associated with (local variable) could not be found in (project).”

The weird part is, everything seems connected properly and it all worked fine when I used regular (non-local) variables. Has anyone run into this before or know what’s causing it?

Thanks in advance!

— Delta_Fox

Welcome to the community.
Could you share a screenshot of your code? the whole chain.