• Net Library Question
    1 replies, posted
If this is confusing i'm sorry. My question is if I have a piece of data i'm trying to send to the client and I receive it in my client side file can I receive it again in another file to use the same data or would I have to some how do it in the same file I received it in. Again i'm sorry if this is confusing i'm a little confused myself.
Which file you receive the net message in doesn't have to do with where you can access it. Once you receive the message and the data stored within, store that data in a variable which the other file has access to (inside a global variable for instance.) I recommend reading this article about Scopes in Lua: [URL]http://lua-users.org/wiki/ScopeTutorial[/URL] Something that is probably confusing you is how in Lua, files are a scope in of itself, but read that article and give solving your problem another shot. If all else fails, post the code from the two different files.
Sorry, you need to Log In to post a reply to this thread.