How do I access or create state variables using THNK. I have looked at the THNK website and seen variables called State and Playerstate but i cant seem to figure out how to you these in my game.
You simply declare 2 variables as Structure variables:
- State
- PlayerState
And then you simply use these variables in your events.
1 Like
When I do this and change the variable on the server side it doesnt update to the clients.
For example, if you set State.Hello variable to number 10 from the host,
Then all clients should now have the variable State.Hello variable set to 10
unless your events have a problem.