永发信息网

饥荒瞬移手杖怎么做,请问饥荒加速手杖有什么用?

答案:1  悬赏:0  手机版
解决时间 2021-04-26 19:01
  • 提问者网友:愿为果
  • 2021-04-26 08:38
饥荒瞬移手杖怎么做,请问饥荒加速手杖有什么用?
最佳答案
  • 五星知识达人网友:舍身薄凉客
  • 2021-04-26 09:30
local assets=
{
Asset(ANIM, anim/cane.zip),
Asset(ANIM, anim/swap_cane.zip),}
local function onfinished(inst)
inst:Remove()
end
local function onequip(inst, owner)
owner.AnimState:OverrideSymbol(swap_object, swap_cane, swap_cane)
owner.AnimState:Show(ARM_carry)
owner.AnimState:Hide(ARM_normal)
end
local function onunequip(inst, owner)
owner.AnimState:Hide(ARM_carry)
owner.AnimState:Show(ARM_normal)
end
local function fn(Sim)
local inst = CreateEntity()
local trans = inst.entity:AddTransform()
local anim = inst.entity:AddAnimState()
inst.entity:AddSoundEmitter()
MakeInventoryPhysics(inst)anim:SetBank(cane)
anim:SetBuild(cane)
anim:PlayAnimation(idle)
inst:AddComponent(weapon)
inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE)inst:AddComponent(inspectable)inst:AddComponent(inventoryitem)inst:AddComponent(equippable)inst.components.equippable:SetOnEquip( onequip )
inst.components.equippable:SetOnUnequip( onunequip )
inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MULTreturn inst
end
return Prefab( common/inventory/cane, fn, assets)
就是这个,把你cane.lua文件夹里的东西都删了,换上这个 这是手杖的原文件。...余下全文>>
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯