--몬스터 캐릭터 옆으로 불러오기
local characterX = target.TransformComponent.WorldPosition.x
mob.TransformComponent:SetWorldPosition(Vector3(characterX + 1, mob.TransformComponent.WorldPosition.y, mob.TransformComponent.WorldPosition.z))
if (isvalid(target) and ai.LocalUnchaseTick < 7) then
if (ai.AttackWasLast) then
nextAction = _GlobalRand32:RandomIntegerRange(200, 900) / 1000
else
nextAction = _GlobalRand32:RandomIntegerRange(100, 160) / 1000
end
local targetX = target.TransformComponent.WorldPosition.x + 0.5
newInputX = targetX > mobX and 1 or -1
else
nextAction = (_GlobalRand32:RandomIntegerRange(100, 300) / 1000)
newInputX = _GlobalRand32:RandomIntegerRange(-1, 1)
end
local platforms = mob.CurrentMap.PlatformInfoComponent
local timelines = {}
local timelineIndex = 0
local lastTimeline = 0
local playerFh = _UserService.LocalPlayer.WsUserController.LastFoothold
if (playerFh == 0 or platforms.ZMass[playerFh] ~= ai.LocalStartChaseZMass) then
-- ai.LocalUnchaseTick += 1
-- ai:IncUnTick()
local rb = mob.MobRigidbodyComponent
end
local function makeCommand(cmd, value, timeline, nextActionTime)
timelines[timelineIndex + 1] = {cmd, value, timeline - lastTimeline, nextActionTime}
timelineIndex = timelineIndex + 1
lastTimeline = timeline
end
makeCommand(_MobActionPartType.Move, newInputX, 0, nextAction)
ai.NextRandomJump = math.max(ai.NextRandomJump, now + 1)
kb:SetShoeAttr(0)
if (timelineIndex > 0) then
mob.CurrentMap.LifeControllerComponent:RequestControl(mob, timelines, timelineIndex, false)
end
ai:EnableNextControlTimer(nextAction)| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+156 | 10-20 | 22387 | |
| 61793 | 03:20 | 152 | ||
| 61792 | 12-28 | 428 | ||
| 61791 | 12-28 | 476 | ||
| 61790 | 12-26 | 715 | ||
| 61789 | 12-25 | 861 | ||
| 61788 | 12-25 | 804 | ||
| 61787 | 12-24 | 1093 | ||
| 61786 | 12-23 | 1449 | ||
| 61785 | 12-22 | 1445 | ||
| 61784 | 12-22 | 1597 | ||
| 61783 | 12-22 | 1404 | ||
| 61782 | 12-21 | 1471 | ||
| 61781 | 12-21 | 1644 | ||
| 61780 | 12-21 | 1560 | ||
| 61779 | 12-19 | 1751 | ||
| 61778 | 12-18 | 1842 | ||
| 61777 | 12-18 | 2480 | ||
| 61776 | 12-16 | 2359 | ||
| 61775 | 12-14 | 2448 |
댓글2
형 진짜 뭐가 뭔지 몰라요 스크립트 시원하게 한번 올려주세여
메모장만 2시간봣어요 ㅠ