채팅0

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

    조회수 478

    몹거리 수정하는거 혹시

    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

      게시글 리스트
      제목작성자작성일조회
      2812902-03517
      2812802-03305
      2812702-03472
      2812602-03479
      2812502-03362
      2812402-03666
      2812302-03372
      2812202-03427
      2812102-03288
      2812002-03316
      2811902-03402
      2811802-03526
      2811702-03621
      2811602-03412
      2811502-032208
      2811402-03486
      2811302-03574
      2811202-03307
      2811102-03624
      2811002-03287
      안내 배너 이미지