undo.AddFunction
From GMod Wiki
| Function | |
| Syntax |
undo.AddFunction( Function func, ... ) Where is this used? |
| Description: | |
| Adds a function to call to the existing undo block. | |
| Returns: | nil |
| Part of Library: | Undo |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Undo.AddFunction]Undo.AddFunction [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- The called function is first passed a table with all the data fed into the undo, before being passed the arguments specified. Therefore, it is advisable to create your own inline function.