饥荒吧 关注:674,304贴子:6,936,507
  • 6回复贴,共1

修改main.lua后可以地图全开,但是一瞬移就报错,谁知道咋弄啊

只看楼主收藏回复



1楼2015-12-24 20:48回复
    ---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()


    2楼2015-12-24 20:50
    回复
      哪里不对呢?


      3楼2015-12-24 20:50
      回复
        不要沉啊


        4楼2015-12-24 20:52
        回复
          药丸 没人知道么


          5楼2015-12-24 20:55
          回复
            别沉啊


            6楼2015-12-24 20:57
            回复