채팅0

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

    조회수 343
    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

      게시글 리스트
      제목작성자작성일조회
      1981701-27344
      1981601-27125
      1981501-27737
      1981401-27158
      1981301-27231
      1981201-27238
      1981101-27380
      1981001-27338
      1980901-27485
      1980801-27510
      1980701-27770
      1980601-27226
      1980501-27204
      1980401-27335
      1980301-27230
      1980201-27192
      1980101-27153
      1980001-27298
      1979901-27746
      1979801-27317
      안내 배너 이미지