跑跑車首頁

當(dāng)前位置:首頁攻略秘籍單機攻略 → 饑荒怎么開全圖 饑荒22版地圖全開方法

饑荒怎么開全圖 饑荒22版地圖全開方法

作者:佚名來源:本站整理 發(fā)表時間:2016/2/29 16:35:56 評論(0)

饑荒怎么開全圖呢?小編今天給大家?guī)砹损嚮?2版本開啟全圖的方法,感興趣的玩家快來看下吧。

饑荒開全圖方法:
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瞬移到鼠標(biāo)所在位置。


玩家評論
我要點評

網(wǎng)名 注:您的評論需要經(jīng)過審核才會顯示出來。

已有 0 位玩家參與點評
下載排行