Lua接口/服务端/LuaFnIsScriptDynamicParamIndexLegal
来自天龙知识库
检查脚本动态参数索引是否有效。
Lua 调用
LuaFnIsScriptDynamicParamIndexLegal(sceneId, nSelfID, nIndex)
服务端脚本中未检索到该接口的调用点(已检索 4245 个随包脚本)。
实现位于 LuaFnTbl_DoAction.h。
参数
| 序号 | 参数 / 类型 | 说明 |
|---|---|---|
| 1 | sceneIdnumber
|
当前调用所在的场景 ID。 |
| 2 | nSelfIDnumber
|
当前场景内的对象 ID。玩家接口需传入有效玩家对象;不是角色 GUID。 |
| 3 | nIndexnumber
|
参数索引 |
返回值
返回 1 个值。返回类型包括 number。明确的固定返回组合包括 -1。