饑荒怎么開全圖 饑荒22版地圖全開方法
饑荒怎么開全圖呢?小編今天給大家?guī)?lái)了饑荒22版本開啟全圖的方法,感興趣的玩家快來(lái)看下吧。
饑荒開全圖方法:
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、進(jìn)游戲后ctrl+1地圖全開,ctrl+2瞬移到鼠標(biāo)所在位置。
查看所有0條評(píng)論>>