Language

onShoot


onShoot()

Description

onShoot() is a callback function called when the player shoots a bullet.


Examples

Shoot an additional custom bullet upward the player

  1. function onShoot()
  2.     Map.createAnimatedBullet(10, Player.getPosition()[1], Player.getPosition()[2], "bullet2.png", 22, 0.5, true, 2, 2, 18, 18, 0, 250, 0)
  3. end