Seuika
(knkr)
#1
My question is: Is that possible to call functions into any table? Like:
function test(self)
table.remove(self)
end
local myTable = {
table2 = {
"hello!",
false
},
table3 = {}
}
--What i want to do:
myTable.table2:test()
I know i can do this function with other ways too, but i will do something different.
2 Likes
Seuika
(knkr)
#3
I know that, but i try to call function into all tables.
What you could do is something similar to this
local myTable = {
table2 = function()
-- stuff
end;
table3 = {}
}
--What I want to do:
myTable.table2()
Seuika
(knkr)
#5
I know i can do this, but if i want to add this function into all table variables, that’s take long.