初级玩家

- 贡献度
- 0
- 金元
- 906
- 积分
- 91
- 精华
- 0
- 注册时间
- 2014-3-9
|
荒神来了 发表于 2014-4-30 03:15 
可不可以把瑞士手杖的铲地功能去掉 有时不想挖都挖掉了
3.在anim layAnimation("idle")的下一行插入以下内容:
inst:AddComponent("tool")
inst.components.tool:SetAction(ACTIONS.CHOP, 15)
inst.components.tool:SetAction(ACTIONS.MINE, 15)
inst.components.tool:SetAction(ACTIONS.HAMMER,15))
inst:AddComponent("waterproofer")
inst.components.waterproofer:SetEffectiveness(TUNING.WATERPROOFNESS_ABSOLUTE)
inst:AddComponent("blinkstaff")
local light = inst.entity:AddLight()
light:SetFalloff(0.4)
light:SetIntensity(.7)
light:SetRadius(2.5)
light:SetColour(180/255, 195/255, 150/255)
light:Enable(true)
就把这一步改就行了 |
|