채팅0

    chat logic 안뜨는거 질문

    조회수 643
    [zz_y7_const.positionchecker] = function(self)
    	_ChatMessageLogic:Add(_ChatMessageType.Yellow, "현재위치.")
    	--zz_y7.pos_checker = not zz_y7.pos_checker
    	--if zz_y7.pos_checker then
    		--zz_y7.auto_pos_checker = _TimerService:SetTimerRepeat(zz_y7.pos_checker, 1)
    	--else
    		--_TimerService:ClearTimer(zz_y7.auto_pos_checker)
    	--end
    	--zz_y7.cur_pos = _UserService.LocalPlayer.TransformComponent.WorldPosition:ToVector2()
    	zz_y7.cur_pos_x = tonumber(zz_y7.cur_pos.X)
    	zz_y7.cur_pos_y = tonumber(zz_y7.cur_pos.Y)
    	--_ChatMessageLogic:Add(_ChatMessageType.System, "x좌표 : " .. zz_y7.cur_pos_x)
    	print_toggle_message(zz_y7.cur_pos_y, true)
    	print_toggle_message(zz_y7.cur_pos_x, true)
    end,

    ㅇ이건데 내가 저거 호출 시, 현재 서있는 좌표값을 알고싶은데


    치엔을 계속 킬 수 있는것도 아니고, 디버그해보고싶어서

    메세지 로직이나

    이미 있는 토글메세지 써서 출력하고 싶은데


    문제는 -현재위치- 이거까지는 잘 출력이 됨

    근데 아래 chatLogic을 쓰든, 토글 메시지 쓰든 출력이 안됨...


    cur_pos 는 vector2로 0,0 초기값 해놨고

    _x, _y둘다 tonumber(0)인 상태임...


    이거 대체 뭐가 문제임??

    다른 것도 디버깅이 안되서 볼수있는게 너무 없어서 그래...

    응애 루아좀 도와주라

    댓글2

    회원프로필

    -- 이거는 주석처리라서 없에야 하는디?

    2024.02.17 18:34
    회원프로필

    걍 이것저것 넣어보다 안되서 긁어온건데

    주석처리 빼고 넣고 다해보는데도 안됨

    지금은 토글프린트 쓰려고 챗로직 주석 처리 해놓은거고

    현재위치 받아오는거 때문인가 싶어서
    현재위치 가져오는 것도 주석처리한거임
    0,0이라도 출력하게 했는데 것도 안되니까

    2024.02.17 18:44

      게시글 리스트
      제목작성자작성일조회
      공지10-2022066
      6163311-05119
      6163211-05122
      6163111-05133
      6163011-05121
      6162911-05219
      6162811-04288
      6162711-04374
      6162611-04498
      6162511-04447
      6162411-03517
      6162311-03597
      6162211-03647
      6162111-02781
      6162011-02616
      6161911-02700
      6161811-02829
      6161711-02789
      6161611-02773
      6161511-01716
      안내 배너 이미지