Skip to content

Instantly share code, notes, and snippets.

@walterhiggins
Last active December 30, 2015 13:30
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 walterhiggins/5800d5fd0afa9e1064cf to your computer and use it in GitHub Desktop.
Save walterhiggins/5800d5fd0afa9e1064cf to your computer and use it in GitHub Desktop.
var lightning = require('lightning');
events.projectileHit( function(event) {
if ( entities.arrow( event.projectile ) &&
entities.player( event.projectile.owner ) ) {
lightning( event.projectile );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment