--몬스터 캐릭터 옆으로 불러오기
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)| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 20117 | 01-27 | 419 | ||
| 20116 | 01-27 | 247 | ||
| 20115 | 01-27 | 132 | ||
| 20114 | 01-27 | 240 | ||
| 20113 | 01-27 | 141 | ||
| 20112 | 01-27 | 150 | ||
| 20111 | 지형무시,플레이어좌표+15 | 01-27 | 532 | |
| 20110 | 01-27 | 418 | ||
| 20109 | 01-27 | 115 | ||
| 20108 | 01-27 | 349 | ||
| 20107 | 01-27 | 462 | ||
| 20106 | 01-27 | 128 | ||
| 20105 | 01-27 | 363 | ||
| 20104 | 01-27 | 261 | ||
| 20103 | 01-27 | 154 | ||
| 20102 | 01-27 | 427 | ||
| 20101 | 01-27 | 150 | ||
| 20100 | 조용히+2 | 01-27 | 468 | |
| 20099 | 01-27 | 115 | ||
| 20098 | 01-27 | 395 |
댓글2
형 진짜 뭐가 뭔지 몰라요 스크립트 시원하게 한번 올려주세여
메모장만 2시간봣어요 ㅠ