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

《饥荒》这款生存游戏,很多玩家都想觉得游戏有些难,就想修改一些内容,比如解锁全人物,主角自动回血,主角不会饿之类的,下面小编为大家奉上最全的修改教程,内容简单易懂,希望各位玩家喜欢。目录

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

一三六.装备回旋镖召唤猎物(打猎游戏)

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

  local function cancreatelight(staff, caster, target, pos)

  local ground = GetWorld()

  if ground and pos then

  local tile = ground.Map:GetTileAtPoint(pos.x, pos.y, pos.z)

  return tile ~= GROUND.IMPASSIBLE and tile < GROUND.UNDERGROUND

  end

  return false

  end

  local function createlight(staff, target, pos)

  local names = {"crow","robin","robin_winter","frog","mosquito","bee","killerbee","butterfly","rabbit","babybeefalo"}

  local name = names[math.random(#names)]

  local prey = SpawnPrefab(name)

  prey.Transform:SetPosition(pos.x, pos.y, pos.z)

  end

  inst:AddComponent("spellcaster")

  inst.components.spellcaster:SetSpellFn(createlight)

  inst.components.spellcaster:SetSpellTestFn(cancreatelight)

  inst.components.spellcaster.canuseonpoint = true

  inst.components.spellcaster.canusefrominventory = false

  即可在装备回旋镖后,在空地上点鼠标右键召唤猎物,包括鸟、昆虫、青蛙、兔子、小牛,尽情捕猎吧

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

作者:易宁     责任编辑:Shy夏夏

本文是否解决了您的问题

APP精彩推荐打开游民APP查看更多

  • 性感不过少妇的小腹 我命令你把衣服穿回去的囧图
    性感不过少妇的小腹 我命令你把衣服穿回去的囧图

  • “薄透蝴蝶丁字裤”发售!镂空刺绣设计直开到后腰
    “薄透蝴蝶丁字裤”发售!镂空刺绣设计直开到后腰

  • 国产武侠《河洛群侠传2》预告首曝!大量猛料放出
    国产武侠《河洛群侠传2》预告首曝!大量猛料放出

攻略合集
人物图鉴

相关内容

在线玩推荐更多

游民星空

打开App阅读体验更佳,攻略、资讯实时更新

下载APP