Voxel Game Maker

Docs Cookbook

Bow or wand

Make a Bow (or Wand) item and equip it as weapon.

#Without code

  1. Make a Bow (or Wand) item and equip it as weapon.
  2. Set Shoots (projectile model; empty = swings) to an arrow or spark model.
  3. For a bow, give it Ammo (an Arrow item used up per shot).
  4. Give the projectile model Damage and Destroy (see Shooter).

#Quick code

Where it goes: Event: Player enters the world.

while true do
  if ammo() == 0 then popup("Out of arrows!") end
  wait(1)
end