public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { Owner.Status.CurrentSpeed = 20f; if (NodeUtil.IsLastFrame(Owner)) { Owner.Status.CurrentSpeed = Owner.Status.Speed; NodeUtil.StopMovement(Owner); NodeUtil.ChangeAction(Owner, "GoblinStealerAvoidAction"); return; } else { } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { NodeUtil.LookPlayer(Owner); NodeUtil.RotationAnim(Owner, "run"); if (NodeUtil.PlayerInRange(Owner, 8f)) { if (NodeUtil.PlayerInRange(Owner, 5f)) { NodeUtil.ChangeAction(Owner, "DruidAttackAction"); NodeUtil.AvoidFormPlayer(Owner); } else { } } else { NodeUtil.ChangeAction(Owner, "DruidIdleAction"); } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { NodeUtil.LookPlayer(Owner); NodeUtil.RotationAnim(Owner, "run"); if (NodeUtil.PlayerInRange(Owner, 2f)) { NodeUtil.ChangeAction(Owner, "GoblinStealerAttackAction"); return; } else { NodeUtil.MoveToPlayer(Owner); } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.IsLastFrame(Owner)) { NodeUtil.ChangeAction(Owner, "GoblinDrunkIdleAction"); } }
void TimeLine_4() { if (NodeUtil.IsActivateAbility(Owner, 211)) { NodeUtil.ChangeAction(NodeUtil.CreateEntity("GoblinDrunk", NodeUtil.VectorAdd(NodeUtil.GetPosition(Owner), NodeUtil.CreateVector3(0.4808326f, 0f, 0f))), "GoblinDrunkCreateAction"); } else { } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.IsLastFrame(Owner)) { NodeUtil.ChangeAction(Owner, "CSlimeIdleAction"); } else { } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacroByCurrentOrder(Owner, 6)) { return; } if (NodeUtil.IsLastFrame(Owner)) { NodeUtil.ChangeAction(Owner, "PlayerIdleAction"); } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.IsLastFrame(Owner)) { NodeUtil.ChangeAction(NodeUtil.CreateEntity("CSlime", NodeUtil.VectorAdd(NodeUtil.GetPosition(Owner), NodeUtil.CreateVector3(0.04f, 0f, 0.04f))), "CSlimeCreate1Action"); NodeUtil.ChangeAction(NodeUtil.CreateEntity("CSlime", NodeUtil.VectorMinus(NodeUtil.GetPosition(Owner), NodeUtil.CreateVector3(0.04f, 0f, 0.04f))), "CSlimeCreate2Action"); NodeUtil.DestroyEntity(Owner); } else { } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { if (IsEnd) { NodeUtil.ChangeAction(Owner, "GoblinStoreIdleAction"); } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { NodeUtil.AvoidFormPlayer(Owner); NodeUtil.RotationAnim(Owner, "run"); if (!NodeUtil.PlayerInRange(Owner, 3f) || IsEnd) { NodeUtil.ChangeAction(Owner, "GoblinStealerIdleAction"); } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { if (NodeUtil.IsLastFrame(Owner)) { NodeUtil.ChangeAction(Owner, "GoblinFirstIdleAction"); } else { } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.HitDeadLogicMacro(Owner, "EnemyHitAction", "EnemyDeadAction")) { } else { if (NodeUtil.IsLastFrame(Owner)) { NodeUtil.ChangeAction(Owner, "EnemyIdleAction"); } else { } } }
public override void UpdateAction() { base.UpdateAction(); if (false) { } else { if (NodeUtil.IsLastFrame(Owner)) { NodeUtil.ChangeAction(Owner, "GoblinBuilderIdleAction"); } else { } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { if (NodeUtil.PlayerInRange(Owner, 7f)) { NodeUtil.ChangeAction(Owner, "CSlimeMoveAction"); } else { } } }
//히트 업데이트 액션 public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacroByCurrentOrder(Owner, 6)) { } else { if (NodeUtil.IsLastFrame(Owner)) { NodeUtil.ChangeAction(Owner, "GoblinHentaiIdleAction"); } else { } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { if (NodeUtil.IsActivateAbility(Owner, 210)) { } else { NodeUtil.ChangeAction(Owner, "GoblinPriestIdleAction"); } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.HitDeadLogicMacro(Owner, "CSlimeHitAction", "CSlimeDeadAction")) { } else { if (NodeUtil.PlayerInRange(Owner, 7f)) { NodeUtil.ChangeAction(Owner, "CSlimeMoveAction"); } else { } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { if (NodeUtil.IsLastFrame(Owner)) { NodeUtil.TakeDamageBoth(NodeUtil.GetCharactersInRange(Owner, false, false, 300f), -20f); NodeUtil.ChangeAction(Owner, "GoblinPriestIdleAction"); } else { } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { if (NodeUtil.IsLastFrame(Owner)) { NodeUtil.ChangeAction(Owner, "GoblinSlingIdleAction"); } else { //NodeUtil.LookPlayer(Owner); } } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.IsLastFrame(Owner)) { if (NodeUtil.IsActivateAbility(Owner, 211)) { NodeUtil.ChangeAction(NodeUtil.CreateEntity("GuardianStone", NodeUtil.GetPosition(Owner)), "GuardianStoneCreateAction"); NodeUtil.DestroyEntity(Owner); } else { NodeUtil.DestroyEntity(Owner); } } else { } }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.HitDeadLogicMacro(Owner, "CSlimeHitAction", "CSlimeDeadAction")) { } else { NodeUtil.LookPlayer(Owner); NodeUtil.RotationAnim(Owner, "run"); if (NodeUtil.PlayerInRange(Owner, 0.7f)) { NodeUtil.ChangeAction(Owner, "CSlimeAttackAction"); } else { NodeUtil.MoveToPlayer(Owner); } } }
public override void UpdateAction() { base.UpdateAction(); timer1 += 1; if (NodeUtil.StateActionMacro(Owner)) { } else { if (check1 == 1) { if (timer1 == timer2) { timer1 = 0; timer2 = UnityEngine.Random.Range(80, 120); check1 = UnityEngine.Random.Range(1, 3); RandomMove.Set(UnityEngine.Random.Range(-10, 10), 0, UnityEngine.Random.Range(-10, 10)); RandomMove = RandomMove + Owner.transform.position; NodeUtil.StopMovement(Owner); NodeUtil.RotationAnim(Owner, "idle"); } else { Owner.transform.rotation = Quaternion.LookRotation(RandomMove.normalized, Vector3.up); NodeUtil.RotationAnim(Owner, "run"); Owner.NavAgent.destination = RandomMove.normalized; } } else if (check1 == 2) { timer2 = 200; if (timer1 == timer2) { timer1 = 0; timer2 = UnityEngine.Random.Range(80, 120); check1 = UnityEngine.Random.Range(1, 3); RandomMove.Set(UnityEngine.Random.Range(-10, 10), 0, UnityEngine.Random.Range(-10, 10)); RandomMove = RandomMove + Owner.transform.position; } else { NodeUtil.LookPlayer(Owner); NodeUtil.RotationAnim(Owner, "idle"); NodeUtil.StopMovement(Owner); } } if (IsAttack == false) { if (NodeUtil.PlayerInRange(Owner, 7f)) { NodeUtil.ChangeAction(Owner, "GoblinDrunkMoveAction"); return; } } } }
void TimeLine_2() { NodeUtil.TakeDamageBoth(NodeUtil.GetCharactersInRange(Owner, false, false, 5f), -20f); NodeUtil.ChangeAction(Owner, "DruidIdlection"); }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { // 5M 이내로 진입할때 까지 movetoplayer if (NodeUtil.PlayerInRange(Owner, 5)) { if (pandan == 1 || pandan == 6)//공격 { NodeUtil.LookPlayer(Owner); NodeUtil.ChangeAction(Owner, "GoblinSlingAttackAction"); } else if (pandan == 2)//이동->플레이어 { timer2 += 0.1f; if (timer2 <= timer1) // 2m내에 있으면 판단 변수 재지정 아니면 이동 { NodeUtil.LookPlayer(Owner); NodeUtil.RotationAnim(Owner, "run"); NodeUtil.MoveToPlayer(Owner); } else { pandan = UnityEngine.Random.Range(min, max); timer2 = 0f; timer1 = UnityEngine.Random.Range(6, 10);; } } else if (pandan == 3)//대기 { NodeUtil.StopMovement(Owner); timer2 += 0.1f; if (timer2 <= timer1) { NodeUtil.LookPlayer(Owner); NodeUtil.RotationAnim(Owner, "idle"); } else { pandan = UnityEngine.Random.Range(min, max); timer2 = 0f; timer1 = UnityEngine.Random.Range(6, 10); } } else if (pandan == 4 || pandan == 5)//랜덤 장소로 이동 { timer2 += 0.05f; if (timer2 <= timer1) { NodeUtil.RotationAnim(Owner, "run"); if (chamgo == 0) { chamgo = 1; xx = UnityEngine.Random.Range(-1f, 1f); zz = UnityEngine.Random.Range(-1f, 1f); DesPos = Owner.transform.position + new Vector3(xx, 0, zz); Owner.transform.rotation = Quaternion.LookRotation((DesPos - Owner.transform.position).normalized, Vector3.up); } DesPos = Owner.transform.position + new Vector3(xx, 0, zz); NodeUtil.MoveToPpsition(Owner, DesPos); } else { pandan = UnityEngine.Random.Range(min, max); timer2 = 0f; chamgo = 0; timer1 = UnityEngine.Random.Range(6, 10); } } else //도망 { timer2 += 0.1f; if (timer2 <= timer1) // 7m내에 PC가 없으면 재지저 { Owner.transform.rotation = Quaternion.LookRotation((Owner.transform.position - Player.CurrentPlayer.transform.position).normalized, Vector3.up); NodeUtil.RotationAnim(Owner, "run"); NodeUtil.AvoidFormPlayer(Owner); } else { pandan = UnityEngine.Random.Range(min, max); timer2 = 0f; timer1 = UnityEngine.Random.Range(6, 10); } } } else { NodeUtil.LookPlayer(Owner); NodeUtil.RotationAnim(Owner, "run"); NodeUtil.MoveToPlayer(Owner); } } }
void TimeLine_3() { NodeUtil.ChangeAction(Owner, "WoodTotemSpellAction"); }
void TimeLine_2() { NodeUtil.ChangeAction(Owner, "GoblinPriestSkillAction"); }
public override void UpdateAction() { base.UpdateAction(); if (NodeUtil.StateActionMacro(Owner)) { } else { if (check1 == 1) { timer1 = timer1 + 1; if (timer1 == timer2) { timer1 = 0; timer2 = UnityEngine.Random.Range(40, 100); check1 = UnityEngine.Random.Range(1, 3); NodeUtil.StopMovement(Owner); } else { NodeUtil.LookPlayer(Owner); NodeUtil.RotationAnim(Owner, "run"); if (NodeUtil.PlayerInRange(Owner, 1f)) { NodeUtil.ChangeAction(Owner, "CSlimeAttackAction"); } else { NodeUtil.MoveToPlayer(Owner); } } } else if (check1 == 2) { timer1 = timer1 + 1; if (timer1 == timer2) { timer1 = 0; timer2 = UnityEngine.Random.Range(40, 100); check1 = UnityEngine.Random.Range(1, 3); } else { NodeUtil.LookPlayer(Owner); NodeUtil.RotationAnim(Owner, "idle"); NodeUtil.StopMovement(Owner); } } else if (check1 == 3) { timer1 = timer1 + 1; if (timer1 == timer2) { timer1 = 0; timer2 = UnityEngine.Random.Range(40, 100); check1 = UnityEngine.Random.Range(1, 3); } else { Owner.transform.rotation = Quaternion.LookRotation((Owner.transform.position - Player.CurrentPlayer.transform.position).normalized, Vector3.up); NodeUtil.RotationAnim(Owner, "run"); NodeUtil.AvoidFormPlayer(Owner); } } } }
public void StopRun() { NodeUtil.ChangeAction(Owner, "GoblinDrunkIdleAction"); isFinish = true; }