Setting variables to NPCs and displaying them in a widget help

You know it’s impossible to tell from this description, right?

Sorry thats my bad, I thought I pasted the image.


this part

1 Like

You did, but what is not working about it? This does not tell us anything.

sorry, For me I get an accessed none on the function, and the variable - name manager comes back as not valid

1 Like

It means there is no generator in the game mode. Open the game mode and see what is up.

thats what it says, but there is, so I am a little confused

1 Like

What is the actual error message that you are getting?


Accessed None trying to read property: GenerateNamesRefs

1 Like
  • what is this connected to and does it print:

  • can you also show how the farmers are trying to access it? Clicking the errors will take you there:

it isnt connected to anything after it but it does print

and this is where the error takes me to

1 Like

I meant the left hand side connection? Being Play?

ah sorry, yes its connected to begin play

1 Like

What does it print if you:

image

Where the yellow arrow is?

My gamemodename_C_0

1 Like

gamemodename_C_0

It literally says that? Then you’re spawning it in the wrong game mode… your game mode is called:

image

Super weird.

no it doesnt literally say that, I only have one game mode so I just wrote that.

Literally says GM_RTS_GameMode_C_0

1 Like

If you try to validate it like so:

Is it valid?

Yes that is valid,
but plugging the generate names ref into IsValid, comes back not valid

1 Like

What else runs before before the top line?

nothing else

1 Like