채팅0

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

    조회수 496

    몹거리 수정하는거 혹시

    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

      게시글 리스트
      제목작성자작성일조회
      2813102-03266
      2813002-03670
      2812902-03530
      2812802-03317
      2812702-03491
      2812602-03497
      2812502-03377
      2812402-03698
      2812302-03387
      2812202-03440
      2812102-03308
      2812002-03327
      2811902-03421
      2811802-03542
      2811702-03638
      2811602-03428
      2811502-032246
      2811402-03504
      2811302-03592
      2811202-03324
      안내 배너 이미지