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 < 이건 솔직히 아닌 느낌이 크고..
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 20037 | 01-27 | 605 | ||
| 20036 | 01-27 | 209 | ||
| 20035 | 01-27 | 465 | ||
| 20034 | 01-27 | 176 | ||
| 20033 | 01-27 | 333 | ||
| 20032 | 01-27 | 202 | ||
| 20031 | 01-27 | 1069 | ||
| 20030 | 01-27 | 136 | ||
| 20029 | 01-27 | 119 | ||
| 20028 | 01-27 | 209 | ||
| 20027 | 01-27 | 423 | ||
| 20026 | 지형무시 코드+5 | 01-27 | 396 | |
| 20025 | 01-27 | 153 | ||
| 20024 | 01-27 | 617 | ||
| 20023 | 01-27 | 429 | ||
| 20022 | 01-27 | 436 | ||
| 20021 | 01-27 | 469 | ||
| 20020 | 01-27 | 210 | ||
| 20019 | 01-27 | 192 | ||
| 20018 | 01-27 | 192 |
댓글3
?!?! 혹시 그걸 mob.MobRigidbodyComponent 이거 대신 넣는 건가여??
이제 맞아 형?/
그냥 mob.IgnoreTerrain = true 이것만 넣으면대?