游戏狂人
![Rank: 6](static/image/common/star_level3.gif) ![Rank: 6](static/image/common/star_level2.gif)
- 贡献度
- 60
- 金元
- 14000
- 积分
- 1640
- 精华
- 0
- 注册时间
- 2013-7-5
|
二十.地图全开打开dont_starve\data\scripts\main.lua
ModManager oadMods()——这一行前面)添加以下代码,保存,进游戏后ctrl+1地图全开,ctrl+2瞬移到鼠标所在位置。
--地图全开
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
);
这是原版的还能用 ctrl+1 |
|