第64页:用荧光果种三朵洞穴花
展开六十四.用荧光果种三朵洞穴花
用记事本打开游戏目录\data\scripts\prefabs\lightbulb.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
SpawnPrefab("flower_cave_triple").Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
即可用荧光果种三朵洞穴花
更多相关内容请关注:饥荒专区
责任编辑:Shy夏夏