Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void FixedTeleport(Creature * creature, float x, float y, float z, float o)
- {
- creature->NearTeleportTo(x, y, z, o);
- WorldPacket data;
- data.Initialize(MSG_MOVE_TELEPORT, 30);
- data.append(creature->GetPackGUID());
- data << uint32(creature->GetUnitMovementFlags());
- data << uint16(0); // Probably walk flags here
- data << getMSTime(); // time
- data << x; // destination coords
- data << y;
- data << z;
- data << o;
- data << uint32 (0);
- // Other information here: jumping angle etc
- creature->Relocate(x, y, z, o);
- creature->SendMessageToSet(&data, false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement