return function(self, mob, pos)
local platformInfo = mob.CurrentMap.PlatformInfoComponent
local platforms = platformInfo.Platforms
pos.y = pos.y + 0.02
local platformId = nil
for _, platform in pairs(platforms) do
if pos.x >= platform.MinX and pos.x <= platform.MaxX then
local y = platform:GetYByX(pos.x)
if math.abs(pos.y - y) < 0.1 then
pos.y = y + 0.01
platformId = platform.Id
break
end
end
end
return platformIdend
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+156 | 10-20 | 22381 | |
| 61792 | 12-28 | 115 | ||
| 61791 | 12-28 | 191 | ||
| 61790 | 12-26 | 477 | ||
| 61789 | 12-25 | 598 | ||
| 61788 | 12-25 | 562 | ||
| 61787 | 12-24 | 852 | ||
| 61786 | 12-23 | 1173 | ||
| 61785 | 12-22 | 1193 | ||
| 61784 | 12-22 | 1324 | ||
| 61783 | 12-22 | 1167 | ||
| 61782 | 12-21 | 1244 | ||
| 61781 | 12-21 | 1405 | ||
| 61780 | 12-21 | 1325 | ||
| 61779 | 12-19 | 1524 | ||
| 61778 | 12-18 | 1618 | ||
| 61777 | 12-18 | 2211 | ||
| 61776 | 12-16 | 2129 | ||
| 61775 | 12-14 | 2221 | ||
| 61774 | 12-14 | 2600 |
댓글6
targetX = mobPos.x + 0.17 + dirVecX - -0.8
targetY = mobPos.y + -0.17 + dirVecY - -0.2
될려나요?
원소스에서 movepath를 이제 안써요
그럼 어떤걸 써야할까요?
혹시 스크립트 불러올 때 우회 기능도 있었나요? 재접속 뜨는데 뭐가 문제인지 @_@
아뇨 덤프중에 루아 찾으셔야합니다