채팅0

    지형무시 공유

    조회수 489
    local targetX = target.TransformComponent.WorldPosition.x + 0.5
    newInputX = targetX > mobX and 1 or -1

    else

    nextAction = (_GlobalRand32:RandomIntegerRange(100, 300) / 1000)

    newInputX = _GlobalRand32:RandomIntegerRange(-1, 1)


    end


    local platforms = mob.CurrentMap.PlatformInfoComponent

    local timelines = {}

    local timelineIndex = 0

    --log("platform left x (fh=%d)", platform.left.x, platform.left.foothold.Id)

    --log("platform right x (fh=%d)", platform.right.x, platform.right.foothold.Id)

    local lastTimeline = 0

    local playerFh = _UserService.LocalPlayer.WsUserController.LastFoothold

    if (playerFh == 0 or platforms.ZMass[playerFh] ~= ai.LocalStartChaseZMass) then

    --ai.LocalUnchaseTick += 1

    --ai:IncUnTick()

    local rb = mob.MobRigidbodyComponent


    end


    local function makeCommand(cmd, value, timeline, nextActionTime)

    timelines[timelineIndex + 1] = {cmd, value, timeline - lastTimeline, nextActionTime}

    timelineIndex += 1

    lastTimeline = timeline

    end


    makeCommand(_MobActionPartType.Move, newInputX, 0, nextAction)

    ai.NextRandomJump = math.max(ai.NextRandomJump, now + 1)


    저 부분에서 몇개만 수정하면됨 알아서하셈

    댓글6

    회원프로필

    이건 그냥 내가뿌린코드가 아닌겨

    2024.01.27 20:53
    회원프로필

    형님 근데 진짜 지형어케 해야하나요??

    2024.01.27 20:53
    회원프로필

    여기서 찾아서 수정하면된다는거자나 하나씩 만져봐야지

    2024.01.27 20:54
    회원프로필

    감사합니다 형

    2024.01.27 20:53
    회원프로필

    어디 타이틀에 넣어야 하나요?

    2024.01.27 20:53
    회원프로필

    야 너는 공유뜻을 모르냐

    2024.01.27 20:54

      게시글 리스트
      제목작성자작성일조회
      공지10-2022387
      6179303:20169
      6179212-28443
      6179112-28490
      6179012-26727
      6178912-25874
      6178812-25817
      6178712-241106
      6178612-231464
      6178512-221460
      6178412-221616
      6178312-221417
      6178212-211483
      6178112-211658
      6178012-211573
      6177912-191763
      6177812-181855
      6177712-182495
      6177612-162373
      6177512-142460
      안내 배너 이미지