游民星空 > 攻略秘籍 > 攻略 > 正文

饥荒 全人物解锁及主角自动回血等实用修改教程

2015-01-21 11:28:46 来源:互联网 作者:易宁 我要投稿

第127页:用岩石种海洋

展开

一二七.用岩石种海洋(建造护城河)

  用记事本打开游戏目录\data\DLC0001\scripts\prefabs\inv_rocks.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:

  local function ondeploy(inst, pt, deployer)

  local ground = GetWorld()

  if ground then

  local original_tile_type = ground.Map:GetTileAtPoint(pt.x, pt.y, pt.z)

  local x, y = ground.Map:GetTileCoordsAtPoint(pt.x, pt.y, pt.z)

  if x and y then

  ground.Map:SetTile(x,y, GROUND.IMPASSABLE)

  ground.Map:RebuildLayer( original_tile_type, x, y )

  ground.Map:RebuildLayer( GROUND.IMPASSABLE, x, y )

  end

  local minimap = TheSim:FindFirstEntityWithTag("minimap")

  if minimap then

  minimap.MiniMap:RebuildLayer( original_tile_type, x, y )

  minimap.MiniMap:RebuildLayer( GROUND.IMPASSABLE, x, y )

  end

  end

  inst.components.stackable:Get():Remove()

  end

  inst:AddComponent("deployable")

  inst.components.deployable.ondeploy = ondeploy

  inst.components.deployable.min_spacing = 0

  inst.components.deployable.placer = "gridplacer"

  即可用岩石种海洋,建造护城河。如果对自己建的岛不满意,也可以用岩石修改哦。岩石种过海洋后,会保留岸边的贴图,存档退出后再进入游戏就正常了。不要将海洋建在路底下

更多相关内容请关注:饥荒专区

责任编辑:Shy夏夏

上一页 121 122 123 124 125 126 127 128 129 130 131 下一页
友情提示:支持键盘左右键“← →”翻页

本文是否解决了您的问题

文章内容导航
游民星空APP
随手浏览游戏攻略
code
攻略合集
单机游戏下载
休闲娱乐
综合热点资讯
游民星空联运游戏