@man with hat
I didn't really get all locals with debug.getupvalue.
This didn't work for me.
Can you give me a example with debug.getlocal.
If I have for example this function:
[CODE]
function myfunc()
local trace = LocalPlayer():GetEyeTrace()
if bla then
trace = something
end
end
[/CODE]
[QUOTE=markusmarkusz;50788624]@man with hat
I didn't really get all locals with debug.getupvalue.
This didn't work for me.
Can you give me a example with debug.getlocal.
If I have for example this function:
[CODE]
function myfunc()
local trace = LocalPlayer():GetEyeTrace()
if bla then
trace = something
end
end
[/CODE][/QUOTE]
upvalues are for local variables created outside of the function, but the function uses. I can't see your full code, but I'm guessing that won't work in this case, and getlocal needs the function to be in the stack in order to get its local variables. If it isn't, then you'll only be able to access the name of its parameters.
Sorry, you need to Log In to post a reply to this thread.