local platforms = mob.CurrentMap.PlatformInfoComponent: 현재 맵의 플랫폼 정보 컴포넌트를 platforms 변수에 할당합니다.
local timelines = {}: 타임라인 명령을 저장할 테이블을 생성하여 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: 로컬 플레이어의 마지막으로 밟은 발판의 ID를 playerFh 변수에 할당합니다.
if (playerFh == 0 or platforms.ZMass[playerFh] ~= ai.LocalStartChaseZMass) then: 만약 로컬 플레이어의 발판 ID가 0이거나 해당 발판의 ZMass 값이 ai.LocalStartChaseZMass와 다르다면,
ai.LocalUnchaseTick += 1: ai.LocalUnchaseTick 값을 1 증가시키고,
ai:IncUnTick(): ai 객체의 IncUnTick 메서드를 호출합니다.
이 부분에서 특히
if (playerFh == 0 or platforms.ZMass[playerFh] ~= ai.LocalStartChaseZMass) then
--ai.LocalUnchaseTick += 1
local rb = mob.MobRigidbodyComponent
이 부분이 핵심인 것 같은데 여기를 어떻게 수정해야 지형 무시로 몹들이 내려올 수 있을까??
mob.IgnoreTerrain = true < 이건 솔직히 아닌 느낌이 크고..
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+156 | 10-20 | 22387 | |
| 61793 | 03:20 | 153 | ||
| 61792 | 12-28 | 429 | ||
| 61791 | 12-28 | 477 | ||
| 61790 | 12-26 | 716 | ||
| 61789 | 12-25 | 862 | ||
| 61788 | 12-25 | 805 | ||
| 61787 | 12-24 | 1094 | ||
| 61786 | 12-23 | 1450 | ||
| 61785 | 12-22 | 1446 | ||
| 61784 | 12-22 | 1599 | ||
| 61783 | 12-22 | 1405 | ||
| 61782 | 12-21 | 1472 | ||
| 61781 | 12-21 | 1646 | ||
| 61780 | 12-21 | 1561 | ||
| 61779 | 12-19 | 1752 | ||
| 61778 | 12-18 | 1843 | ||
| 61777 | 12-18 | 2481 | ||
| 61776 | 12-16 | 2360 | ||
| 61775 | 12-14 | 2449 |
댓글3
?!?! 혹시 그걸 mob.MobRigidbodyComponent 이거 대신 넣는 건가여??
이제 맞아 형?/
그냥 mob.IgnoreTerrain = true 이것만 넣으면대?