Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. // Events will be sent when the boss is damaged or killed.
  2. // Please use event listeners to run functions.
  3. document.addEventListener('bossDamaged', function(obj) {
  4. // obj.detail will contain information about the boss and a
  5. // custom message
  6. console.log(obj.detail);
  7. });
  8. // Similarly for for when a boss is killed
  9. document.addEventListener('bossKilled', function(obj) {
  10. console.log(obj.detail);
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement