Skip to content

Instantly share code, notes, and snippets.

@jamesflorentino
Forked from cmwelsh/player-chat.js
Last active December 14, 2015 15:08
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 jamesflorentino/5105289 to your computer and use it in GitHub Desktop.
Save jamesflorentino/5105289 to your computer and use it in GitHub Desktop.
// NPC by cmwelsh
//#CLIENTSIDE
client.players = function(players) {
client.on('chat', function(playerID) {
players.get(playerID, function(player) {
player.move(30, 35);
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment