채팅0

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

    조회수 553

    댓 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

      게시글 리스트
      제목작성자작성일조회
      2043701-28245
      2043601-28554
      2043501-28226
      2043401-28594
      2043301-28200
      2043201-281156
      2043101-281196
      2043001-28534
      2042901-28286
      2042801-28360
      2042701-28360
      2042601-28227
      2042501-28255
      2042401-28162
      2042301-28221
      2042201-28242
      2042101-281946
      2042001-28139
      2041901-28236
      2041801-28476
      안내 배너 이미지