natiny.script.make_nil
natiny.script.make_nil() -> nil
Returns nil. The Lua twin of natiny_script_make_nil(), and the reason both
of them say make: nil is a keyword here, and a binding that could only be
written as natiny.script["nil"] would not be a name anyone uses.
Returns
| Type | Description |
|---|---|
nil |
Always |
Example
-- Both lines remove the name.
natiny.script.set(mod, "game.optional", natiny.script.make_nil())
natiny.script.set(mod, "game.optional", nil)