Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.34 KB | None | 0 0
  1.                                 SetEscortPaused(false);
  2.                                 m_creature->AddSplineFlag(SPLINEFLAG_FLYING);
  3.                                 SetRun();
  4.                                 // Send them flying somewhere outside of the room
  5.                                 if (Creature* pNaralex = m_pInstance->instance->GetCreature(m_pInstance->GetData64(NPC_NARALEX)))
  6.                                 {
  7.                                     // ToDo: Make Naralex fly
  8.                                     // sort of a hack, compare to boss_onyxia
  9.                                     pNaralex->SetByteValue(UNIT_FIELD_BYTES_1, 3, UNIT_BYTE1_FLAG_ALWAYS_STAND | UNIT_BYTE1_FLAG_UNK_2);
  10.  
  11.                                     // Set to flying
  12.                                     pNaralex->AddSplineFlag(SPLINEFLAG_FLYING);
  13.                                     pNaralex->RemoveSplineFlag(SPLINEFLAG_WALKMODE);
  14.  
  15.                                     // Set following
  16.                                     pNaralex->GetMotionMaster()->MoveFollow(m_creature, 5.0f, 0);
  17.                                     // Despawn after some time
  18.                                     pNaralex->ForcedDespawn(30000);
  19.                                 }
  20.                                 m_uiEventTimer = 0;
  21.                                 break;
  22.                         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement