游戏达人
  
- 贡献度
- 80
- 金元
- 19067
- 积分
- 2237
- 精华
- 1
- 注册时间
- 2010-11-27
|
无语。。。 发表于 2014-2-10 16:08 
宁哥你有没有(你的data)修改用什么东西种高脚鸟巢?
因为里面有用高鸟蛋种高鸟,所以就没有种高鸟巢了,你可以将tallbirdegg.lua文件还原为原文件,按下面的改为高鸟蛋种高鸟巢
用记事本打开游戏目录\data\scripts\prefabs\tallbirdegg.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local tallbirdnest = SpawnPrefab("tallbirdnest")
if tallbirdnest then
tallbirdnest:PushEvent("growfromtallbirdnestegg")
tallbirdnest.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
inst:AddComponent("stackable")
inst.components.stackable.maxsize = TUNING.STACK_SIZE_SMALLITEM
|
|