Actually adds the passenger to vehicle .
760 if (
Seat->second.SeatInfo->CanEnterOrExit())
783 bg->EventPlayerDroppedFlag(player);
785 player->StopCastingCharm();
786 player->StopCastingBindSight();
787 player->SendOnCancelExpectedVehicleRideAura();
789 player->UnsummonPetTemporaryIfAny();
810 init.DisableTransportPathTransformations();
812 init.SetFacing(0.0f);
813 init.SetTransportEnter();
818 if (creature->IsAIEnabled)
819 creature->AI()->PassengerBoarded(
Passenger,
Seat->first,
true);
Definition: DBCStructure.h:1305
float Z
Definition: DBCEnums.h:36
void SendClearTarget()
Definition: Unit.cpp:15682
float Y
Definition: DBCEnums.h:35
VehicleEntry const * GetVehicleInfo() const
Definition: Vehicle.h:50
bool HasAuraTypeWithCaster(AuraType auratype, ObjectGuid caster) const
Definition: Unit.cpp:4252
uint32 UsableSeatNum
Number of seats that match VehicleSeatEntry::UsableByPlayer, used for proper display flags...
Definition: Vehicle.h:76
MovementInfo m_movementInfo
Definition: Object.h:612
Unit * Passenger
Definition: Vehicle.h:131
Definition: ObjectGuid.h:32
void RemovePendingEventsForSeat(int8 seatId)
Removes any pending events for given seatId. Executed when a ::Execute is called. ...
Definition: Vehicle.cpp:688
Definition: Creature.h:467
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
struct MovementInfo::TransportInfo transport
Definition: DBCEnums.h:727
Player * ToPlayer()
Definition: Object.h:191
TypeID GetTypeId() const
Definition: Object.h:113
void SetVehicle(Vehicle *vehicle)
Definition: Unit.h:2167
uint32 ID
Definition: DBCStructure.h:1273
void RemovePendingEventsForPassenger(Unit *passenger)
Definition: Vehicle.cpp:713
void Relocate(float x, float y)
Definition: Position.h:67
void SetControlled(bool apply, UnitState state)
Definition: Unit.cpp:13808
Definition: SpellAuraDefines.h:296
Definition: DBCEnums.h:718
Definition: DBCEnums.h:749
uint32 vehicleId
Definition: Object.h:294
int8 seat
Definition: Object.h:291
float X
Definition: DBCEnums.h:34
Position pos
Definition: Object.h:290
ObjectGuid const & GetGUID() const
Definition: Object.h:105
SeatMap::iterator Seat
Definition: Vehicle.h:132
Definition: ObjectGuid.h:33
Definition: UpdateFields.h:109
Creature * ToCreature()
Definition: Object.h:194
DBCPosition3D AttachmentOffset
Definition: DBCStructure.h:1310
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true)
Definition: Unit.cpp:2916
uint32 HasUnitTypeMask(uint32 mask) const
Definition: Unit.h:1399
Vehicle * Target
Definition: Vehicle.h:130
#define ASSERT
Definition: Errors.h:55
Definition: UpdateFields.h:135
void RemoveAurasByType(AuraType auraType, std::function< bool(AuraApplication const *)> const &check)
Definition: Unit.cpp:3567
Definition: Battleground.h:235
ObjectGuid guid
Definition: Object.h:289
#define sScriptMgr
Definition: ScriptMgr.h:837
uint32 time
Definition: Object.h:292
bool IsInWorld() const
Definition: Object.h:100
bool SetCharmedBy(Unit *charmer, CharmType type, AuraApplication const *aurApp=NULL)
Definition: Unit.cpp:14024
Definition: MoveSplineInit.h:52
bool HasFlag(uint16 index, uint32 flag) const
Definition: Object.cpp:1239
void RemoveFlag64(uint16 index, uint64 oldFlag)
Definition: Object.cpp:1312
uint32 FlagsB
Definition: DBCStructure.h:1349
Unit * GetBase() const
May be called from scripts.
Definition: Vehicle.h:49
Definition: SpellAuraDefines.h:138