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