您当前的位置:首页 >> 快讯 >  
今日饥荒怎么开无敌模式_饥荒怎么开全图
来源: 互联网      时间:2023-06-12 21:48:03


(相关资料图)

1、找到游戏中main.lua,文件,地址在dont_starve\data\scripts。

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瞬移到鼠标所在位置。

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

标签:

X 关闭

X 关闭