debug.setlocal

From GMod Wiki

Jump to: navigation, search
Function
Syntax debug.setlocal( [ Thread thread], level, local, value )
Where is this used?
Description:
This function assigns the value value to the local variable with index local of the function at level level of the stack. The function returns nil if there is no local variable with the given index, and raises an error when called with a level out of range. (You can call getinfo to check whether the level is valid.) Otherwise, it returns the name of the local variable.
Returns: Name and value OR Nil
Part of Library: Debug
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Debug.setlocal]Debug.setlocal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
Stub.pngThis article is a stub.
You can help the GMod Wiki by expanding it.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox