您的位置:首页 > 百科 > 百科

今日饥荒怎么开无敌模式(饥荒怎么开全图)

2023-06-12     发布者:金龙
导读大家好,小常来为大家解答以上问题。饥荒怎么开无敌模式,饥荒怎么开全图很多人还不知道,现在让我们一起来看看吧!1、找到游戏中main.lua

1、找到游戏中main.lua,文件,地址在dont_starvedatascripts。

2、用记事本打开,拖到最后,在最后一行(即ModManager:LoadMods()——这一行前面)添加以下代码,保存。

3、  TheInput:AddKeyUpHandler(KEY_1, function()  if TheInput:IsKeyDown(KEY_CTRL) then  local MainCharacter = TheSim:FindFirstEntityWithTag("player")  local map = TheSim:FindFirstEntityWithTag("minimap")  if MainCharacter and map then  local x, y, z = MainCharacter.Transform:GetWorldPosition()  map.MiniMap:ShowArea(x, y, z, 10000)  end  end  end  );  --传送  TheInput:AddKeyUpHandler(KEY_2, function()  if TheInput:IsKeyDown(KEY_CTRL) then  local player = TheSim:FindFirstEntityWithTag("player");  player.Transform:SetPosition(TheInput:GetMouseWorldPos():Get())  end  end  )进游戏后ctrl+1地图全开,ctrl+2瞬移到鼠标所在位置。

本文到此结束,希望对大家有所帮助。

免责声明:本文章由会员“金龙”发布如果文章侵权,请联系我们处理,本站仅提供信息存储空间服务如因作品内容、版权和其他问题请于本站联系

猜你喜欢

最新文章