---PREFABS AND ENTITY INSTANTIATION
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
)
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
)
ModManager:LoadMods()