Lua接口/服务端/LuaFnSendSpecificImpactToUnit
来自天龙知识库
跳到导航跳到搜索
向指定目标施加指定编号的状态效果。
Lua 调用
LuaFnSendSpecificImpactToUnit(sceneId, nSelfID, nSenderID, nTargetID, nImpactDataIndex, nDelayTime)
参数
| 序号 | 参数 / 类型 | 说明 |
|---|---|---|
| 1 | sceneIdnumber
|
当前调用所在的场景 ID。 |
| 2 | nSelfIDnumber
|
当前场景内的对象 ID。玩家接口需传入有效玩家对象;不是角色 GUID。 |
| 3 | nSenderIDnumber
|
效果创造者ID,无符号整型 |
| 4 | nTargetIDnumber
|
目标角色ID,无符号整型 |
| 5 | nImpactDataIndexnumber
|
效果数据索引,无符号整型 |
| 6 | nDelayTimenumber
|
延迟时间 |
返回值
返回 1 个值。返回类型包括 number。明确的固定返回组合包括 -1。
核对依据:
LuaFnTbl_DoAction.h 第 343 行,服务端注册表第 930 行。调用格式与返回数量依据当前实现整理;游戏内效果、边界行为及未注明的业务枚举仍需实测。