채팅0

    맵밖은 구현했는데 좌표저장 코드 삼

    조회수 554

    댓 or 1:1

    댓글5

    회원프로필

    2024.01.28 04:19
    회원프로필

    돈없다 1대1걸어주셈

    2024.01.28 04:19
    회원프로필

    형님 이거맞죠
    return function (self)
    local user = self.Entity
    if (user.WsUser.ExclusiveAction) then
    return
    end
    if (not user.WsUser:IsAvailableInventoryOperation()) then
    return
    end

    --- FIXME Exclusive 디레이 대신 임시
    --local cool = self._T.PickUpCool or 0
    --local now = _UtilLogic.ElapsedSeconds
    --if (now - cool < 0.1) then
    --    return
    --end
    --self._T.PickUpCool = now
    -------------------------------------

    if (user.PlayerTemporaryStat:GetValue(_CTS.DarkSight) ~= 0) then
    return
    end
    local simulator = _CollisionService:GetSimulator(user)
    local x = 0.22
    local y = 0.35
    if zz_y7.use_auto_pick_up then
    x = 15
    y = 15
    end
    local shape = BoxShape(user.TransformComponent.WorldPosition:ToVector2(), Vector2(x,y), 0)
    local tb = {}
    local count = simulator:OverlapAllFast(CollisionGroups.MapleDrop, shape, tb)
    if (count == 0) then
    return
    end
    _TableUtils:Shuffle(tb)
    for _,drop in pairs(tb) do
    self:TryPick(drop)
    break
    end
    end

    저도 위치저장하는법좀..

    2024.01.28 04:44
    회원프로필

    이건 맵밖숨이랑 아무 상관없는건데

    2024.01.28 04:50
    회원프로필

    아뭐야이상한거 올라갓네
    zz_y7.RestoreSavedPositionIfOthersExist = function()
            local player = _UserService.LocalPlayer
            if zz_y7.is_someone_in_world() then
                if zz_y7.SavePositionCommand() then
                    player.TransformComponent.WorldPosition = zz_y7.savedPosition
                    _ScreenMessageLogic:PrivateMsg("누군가가 맵에 있어서 저장된 위치로 이동되었습니다.")
                else
                    _ScreenMessageLogic:PrivateMsg("저장된 위치가 없습니다.")
                end
            else
                _ScreenMessageLogic:PrivateMsg("맵에 다른 유저가 없습니다.")
            end
        end

    2024.01.28 07:07

      게시글 리스트
      제목작성자작성일조회
      공지10-2022125
      6167616:5561
      6167515:4368
      6167415:2768
      6167309:0598
      6167211-13186
      6167111-13226
      6167011-13224
      6166911-13214
      6166811-13226
      6166711-13247
      6166611-13368
      6166511-12377
      6166411-12402
      6166311-12459
      6166211-11597
      6166111-11554
      6166011-11718
      6165911-11603
      6165811-11763
      안내 배너 이미지