饥荒游戏中有些开了全图的玩家想要瞬移,那么,如何达到这个效果呢?感兴趣的玩家快来学习一下吧。
打开dont_starvedatascriptsmain.lua
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
)
- 1太古封魔录(超GM无限刷金 )
-
1
- 2世界大战:欧冠英雄H5
-
2
- 3斩千军H5
-
3
- 4我叫武器战(无限提充648)
-
4
- 5百战天下
-
5
- 6战吕布(送五星关羽20万充)
-
6
- 7玛雅战纪(专属无限刀)
-
7
- 8兽兽军团(GM现金修改器)
-
8