Skip to content

Instantly share code, notes, and snippets.

@Omattyao
Created January 15, 2014 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Omattyao/8431471 to your computer and use it in GitHub Desktop.
Save Omattyao/8431471 to your computer and use it in GitHub Desktop.
<?php
public function setDirection($username, $rotation) {
$entity = $this->api->player->get($username)->entity;
$entity->yaw = (int) $rotation + 90;
$entity->updatePosition();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment