natiny.script.make_string

Lua
natiny.script.make_string(value) -> string

Hands a string back, and errors on anything that is not one. The Lua twin of natiny_script_make_string().

Parameters

Name Type Description
value string The text; a number is taken the way Lua takes one for a string

Returns

Type Description
string value

Example

Lua
natiny.script.set(mod, "game.NAME", natiny.script.make_string("Sponza"))