SHARE
TWEET

register_entity("minemaku:shotEntity")

a guest Jul 25th, 2017 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minetest.register_entity("minemaku:shotEntity",{
  2.     physical=false,
  3.     visual="sprite",
  4.     textures = {"circle-shot.png"},
  5.     on_step = function(self, dtime)
  6.         targetPos = vector.add(self:getpos(),vector.multiply(self.target,dtime*speed))
  7.         self.moveto(targetPos)
  8.     end
  9. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top