Is this doable: test:Func = Function() DebugPrint(self.A) EndFunction
Posted: Fri Nov 08, 2024 12:01 pm
What I am trying to do is basically this:
By other words, I am trying to make a function, using system of
But when doing it this way, is there a way to use the self option?
Like if I would do:
This would work fine, but can I do this same the previous way?
Code: Select all
test = {A=3}
test:Func = Function() DebugPrint(self.A) EndFunction
test:Func()Code: Select all
Test.Func = Function() Debugprint("test") EndFunctionLike if I would do:
Code: Select all
Function Test:Func()
Debugprint(Self.A)
EndFunction