SetNpcDeath
设置Npc死亡
实例:
- Lua
- Json
function (runner,env)
-- runner.SetNpcDeath(死亡类型,死亡NPCID,凶手NPCID(可选),延迟死亡(可选))
runner.SetNpcDeath(0,100)
runner.SetNpcDeath(0,100,0,true)
end
[
{
"id": "测试1",
"character": {
"旁白": 0,
"主角": 1,
"倪旭欣": 609
},
"dialog": [
"SetNpcDeath*0#100",
"SetNpcDeath*0#100#0#1",
],
"option": []
}
]
参数
参数 | 类型 | 描述 | 选项 |
---|---|---|---|
deathType | Integer | 死亡类型 | 必填 |
npcId | Integer | 死亡NPCID | 必填 |
killNpcId | Integer | 凶手NPCID | 可选 |
after | Boolean | 延迟死亡 | 可选 |