채팅0

    ㅋㅋㅋ gpt도움받아서 핵써보려했는데

    조회수 348
    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(200, 900) / 1000
        else
            nextAction = _GlobalRand32:RandomIntegerRange(100, 160) / 1000
        end
        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 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
    
    local walkSpeed = 10
    
    rb.WalkSpeed = walkSpeed
    
    local function makeCommand(cmd, value, timeline, nextActionTime)
        timelines[timelineIndex + 1] = {cmd, value, timeline - lastTimeline, nextActionTime}
        timelineIndex = timelineIndex + 1
        lastTimeline = timeline
    end

    코드가 이렇게바뀜. 이렇게바꿔도 이속이빨라지거나 지형을 무시하는게 안되는데 뭐가문제인거임?

    댓글1

    회원프로필

    2024.01.27 20:56

      게시글 리스트
      제목작성자작성일조회
      공지10-2022387
      6179303:20168
      6179212-28442
      6179112-28489
      6179012-26726
      6178912-25873
      6178812-25816
      6178712-241105
      6178612-231462
      6178512-221458
      6178412-221615
      6178312-221415
      6178212-211482
      6178112-211657
      6178012-211572
      6177912-191762
      6177812-181854
      6177712-182493
      6177612-162371
      6177512-142459
      안내 배너 이미지