脚本

getscripts

返回运行时可访问的所有脚本实例。

语法

getscripts(): table

返回值

名称类型描述
scriptstable包含请求值的表。

说明

返回运行时可访问的所有脚本实例。

无需参数即可调用。函数会从当前 runtime 状态读取所需上下文。

返回 scripts (table)。使用返回表区分成功值、nil 结果和可恢复错误。

示例

使用占位值的示例调用。

local result = getscripts()
print(result)