Alright, so functions are basically blocks of code that execute whatever you have written in them, but what are events and tables actually "used" for. Lets say I wanted to make a mini-game system, where players start in a lobby and teleport to a game. Couldn't this be achieved through just functions?
Event and Table usage help?
1 answer
Events are used to communicate between the server and clients (one way). Events aren't necessarily needed for a mini-games type game if you just intend to have players teleported to a lobby, play a game and then go back, but would be needed if the game is FilteringEnabled and you wanted to have players be able to do things with GUIs or currencies and such.
Tables aren't necessary either, but can help with things such as organization. For example, you could create a table of maps then randomly choose one from the table and load it. But once again all of this could be achieved through functions.
7 comments
"but would be needed if the game is FilteringEnabled" Then they ARE needed. FilteringEnabled has been forced, Experimental Mode has been removed.
It's been forced, but games can still be set into experimental mode manually
No they cannot.
If you're referring to the fact that you can still tick and untick the FilteringEnabled box, it is a dummy setting and does nothing.
Then my bad, I hadn't known
lol...well I understand a bit better now thanks. I suppose the next thing I need to learn is events xD
Good luck!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
If an event is connected to a function, it will fire and any code in that function will run when the event is fired.