Skip to content

Instantly share code, notes, and snippets.

@cmwelsh
Last active December 14, 2015 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cmwelsh/5080319 to your computer and use it in GitHub Desktop.
Save cmwelsh/5080319 to your computer and use it in GitHub Desktop.
Learn2D NPC Script Example
// NPC by cmwelsh
//#CLIENTSIDE
this.onPlayerChats = function () {
if (this.player.chat === 'warp') {
this.player.x = 30;
this.player.y = 35;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment