몹거리 수정하는거 혹시
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 | 22377 | |
| 61790 | 12-26 | 209 | ||
| 61789 | 12-25 | 309 | ||
| 61788 | 12-25 | 315 | ||
| 61787 | 12-24 | 590 | ||
| 61786 | 12-23 | 870 | ||
| 61785 | 12-22 | 921 | ||
| 61784 | 12-22 | 1032 | ||
| 61783 | 12-22 | 916 | ||
| 61782 | 12-21 | 998 | ||
| 61781 | 12-21 | 1151 | ||
| 61780 | 12-21 | 1074 | ||
| 61779 | 12-19 | 1273 | ||
| 61778 | 12-18 | 1376 | ||
| 61777 | 12-18 | 1928 | ||
| 61776 | 12-16 | 1881 | ||
| 61775 | 12-14 | 1987 | ||
| 61774 | 12-14 | 2347 | ||
| 61773 | 12-14 | 2242 | ||
| 61772 | 12-13 | 2107 |
댓글1
newInputX = math.max(targetX - mobX + 1.2, -2)
저기 1.2를 1.7 정더로바꾸셈