채팅0

    몹거리 수정하는법좀...

    조회수 497

    몹거리 수정하는거 혹시

    local target = _UserService.LocalPlayer
    local nextAction = 0
    local newInputX = nil
    local mobX = mob.TransformComponent.WorldPosition.x
    if (isvalid(target) and ai.LocalUnchaseTick < 7) then
    	if (ai.AttackWasLast) then
    		nextAction = _GlobalRand32:RandomIntegerRange(100, 110) / 1000
    		ai.AttackWasLast = false
    	else
    		nextAction = _GlobalRand32:RandomIntegerRange(100, 110) / 1000
    	end
    	local targetX = target.TransformComponent.WorldPosition.x
    	if math.abs(targetX - mobX) > 6 then
    		if targetX > mobX then
    			-- newInputX = 3
    			newInputX = 2
    		else
    			-- newInputX = -3
    			newInputX = -2
    		end
    	else
    		newInputX = math.max(targetX - mobX + 1.2, -2)
    	end
    else
    	nextAction = (_GlobalRand32:RandomIntegerRange(200, 210) / 1000)
    	newInputX = _UserService.LocalPlayer.TransformComponent.WorldPosition.x - mobX + 1.2
    end

    ㅇ여기서 1.2부분들을 올리면 거리가 멀어지는 건가요??

    댓글1

    회원프로필

    newInputX = math.max(targetX - mobX + 1.2, -2)


    저기 1.2를 1.7 정더로바꾸셈

    2024.02.04 00:25

      게시글 리스트
      제목작성자작성일조회
      공지10-2022377
      6179012-26209
      6178912-25309
      6178812-25315
      6178712-24590
      6178612-23870
      6178512-22921
      6178412-221032
      6178312-22916
      6178212-21998
      6178112-211151
      6178012-211074
      6177912-191273
      6177812-181376
      6177712-181928
      6177612-161881
      6177512-141987
      6177412-142347
      6177312-142242
      6177212-132107
      안내 배너 이미지