饥荒怎么开全图 饥荒22版地图全开方法

饥荒怎么开全图呢?小编今天给大家带来了饥荒22版本开启全图的方法,感兴趣的玩家快来看下吧。

14567352378367399

饥荒开全图方法:
1、找到游戏中main.lua,文件,地址在dont_starve\data\scripts。
2、用记事本打开,拖到最后,在最后一行(即ModManager:LoadMods()――这一行前面)添加以下代码,保存。
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
)

3、进游戏后ctrl+1地图全开,ctrl+2瞬移到鼠标所在位置。

原创文章,作者:spike,如若转载,请注明出处:http://www.kz168.cn/52701.html