- UID
- 2104836
- 主题
- 3
- 阅读权限
- 20
- 帖子
- 49
- 精华
- 0
- 积分
- 25
- 金钱
- 309
- 荣誉
- 0
- 人气
- 0
- 在线时间
- 74 小时
- 评议
- 0
- 帖子
- 49
- 精华
- 0
- 积分
- 25
- 金钱
- 309
- 荣誉
- 0
- 人气
- 0
- 评议
- 0
|
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
|
|