Wondering if you can have functions like;
function Start()
--do stuff here
end
in side of dictionaries. So when you access that definition, it calls the function. If this is possible, what all is possible by doing this?
Wondering if you can have functions like;
function Start()
--do stuff here
end
in side of dictionaries. So when you access that definition, it calls the function. If this is possible, what all is possible by doing this?
This discussion is preserved as it was. New answers, comments, and votes are closed.
7 comments
Yes, that's how the math, string, table, etc libraries work.
How would I place a function inside of one then? I am unsure of how to properly do it.
Table[Key] = Funcwould be one example.I tried that,
I guess my real question is, how would I call the function then?
simply say Start() nothing more nothing less.... function thing() end thing()
Right but I would want to call only the function of the table[Key], lets say I have 2 keys with 2 different functions. I want to call the 1st one.