Download

Blueprint coms set variable not working

I have a variable in my CharBP named PlantLocation. I have created a variable in my blueprint trying to set it and referenced it. I can bring up the variable just find but when I try to set it with a transform value, I am getting this error. What am I doing wrong? The print strings are there for dubug and are printing the correct information at the top.

41d5d2b78158ae6c3a9299e38f65630c07fca8bf.jpeg
461ba9522f73d3d773e1d2113e85ad2f494aefbe.jpeg

The thing you are doing wrong is understanding what the Blue Variable is about.

It is a reference variable. You need to fill it! It is empty by default. The Error “Accessed None” tells you
that you are trying to access the empty variable. What is TransLocation? Which specific Actor are you trying
to modify there?

You may want to watch my video about pointer/references and this error:

https://www.youtube.com/watch?v=PmcaFCMDnqQ

[QUOTE=eXi;363195]
The thing you are doing wrong is understanding what the Blue Variable is about.

It is a reference variable. You need to fill it! It is empty by default. The Error “Accessed None” tells you
that you are trying to access the empty variable. What is TransLocation? Which specific Actor are you trying
to modify there?

You may want to watch my video about pointer/references and this error:
https://youtube.com/watch?v=PmcaFCMDnqQ[/QUOTE]

The variable in the CharBP has a transform value set in its BP just for a test but I want to update it often outside of the BP. I have another GET using this method and it is returning a 0 value. I have the CharBP print string and it is showing the correct value.

I deleted the variables in the blueprints trying to use the CharBP one and just used cast to CharBP and that worked like a charm. I tried it before but with the variable reference in there it was giving an error so I stopped using it.