채팅0

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

    조회수 479

    몹거리 수정하는거 혹시

    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-2022111
      6166811-11108
      6166711-11125
      6166611-11144
      6166511-11256
      6166411-11198
      6166311-11314
      6166211-10265
      6166111-10285
      6166011-10276
      6165911-10314
      6165811-10420
      6165711-10424
      6165611-09480
      6165511-09444
      6165411-09476
      6165311-09527
      6165211-09477
      6165111-09532
      6165011-09595
      안내 배너 이미지