Thor
Added new modules
- lightning
The entities module and lightning module are now documented.
To make lightning strikes when and where any arrow lands:
var lightning = require('lightning');
events.projectileHit( function( event ) {
if ( entities.arrow( event.projectile ) ) {
lightning( event.projectile );
}
});