Skip to content

Instantly share code, notes, and snippets.

@FeepingCreature
Created May 25, 2011 21:59
Show Gist options
  • Save FeepingCreature/992090 to your computer and use it in GitHub Desktop.
Save FeepingCreature/992090 to your computer and use it in GitHub Desktop.
void sendPlayerPosLook(double x, y, z, float yaw, pitch, bool onGround) {
byte[auto~] data;
data ~= toField &x;
data ~= toField double:(y + 2);
data ~= toField &y;
data ~= toField &z;
data ~= toField &yaw;
data ~= toField &pitch;
data ~= *byte*:&onGround;
sendPacket(0x0d, data[]);
data.free;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment