몹거리 수정하는거 혹시
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부분들을 올리면 거리가 멀어지는 건가요??
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+156 | 10-20 | 22111 | |
| 61668 | 11-11 | 108 | ||
| 61667 | 11-11 | 125 | ||
| 61666 | 11-11 | 144 | ||
| 61665 | 11-11 | 256 | ||
| 61664 | 11-11 | 198 | ||
| 61663 | 11-11 | 314 | ||
| 61662 | 11-10 | 265 | ||
| 61661 | 11-10 | 285 | ||
| 61660 | 11-10 | 276 | ||
| 61659 | 11-10 | 314 | ||
| 61658 | 11-10 | 420 | ||
| 61657 | 11-10 | 424 | ||
| 61656 | 11-09 | 480 | ||
| 61655 | 11-09 | 444 | ||
| 61654 | 11-09 | 476 | ||
| 61653 | 11-09 | 527 | ||
| 61652 | 11-09 | 477 | ||
| 61651 | 11-09 | 532 | ||
| 61650 | 11-09 | 595 |
댓글1
newInputX = math.max(targetX - mobX + 1.2, -2)
저기 1.2를 1.7 정더로바꾸셈