Advertisement
Combreal

EnableFlyCmdMangosZero03.cpp

Apr 20th, 2020
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. void Player::SetCanFly(bool enable)
  2. {
  3.     if (enable)
  4.     {
  5.         m_movementInfo.SetMovementFlags(MOVEFLAG_CAN_FLY);//MOVEFLAG_FLYING
  6.     }
  7.     else
  8.     {
  9.         m_movementInfo.SetMovementFlags(MOVEFLAG_NONE);
  10.     }
  11.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement