Repository navigation
Custom Weapons
A custom weapon is a new item in the shop and the equipment rack. You pick what kind of weapon it is (the archetype) and the game builds it on one of its own weapons of that kind, so firing, bullets and impacts work like the stock ones. You decide how it looks, sounds and how hard it hits.
Weapons are always part of a ship mod. They ride along in the ship's bundle. See Sample Twin Cannon in Samples for a finished one.
Select your ship prefab, then Tools > BGVR2 > New Weapon From Template. This makes a placeholder turret next to your ship and adds it to the ship's Weapons list.
On ModWeapon:
- Behaviour: Projectile, Beam or Missile
- Size: Small, Medium or Large. Has to match the slots it goes in.
- Mount: Turret (turns to aim) or Fixed (fires straight ahead, for launchers)
- Ion: drains shields and systems (projectiles only)
- Rail: very fast slug, long range (projectiles only)
- Point Defence: shoots down missiles and fighters (small beams only)
-
Base Weapon (optional): build on an exact stock weapon, ex
MCT2B, to copy its barrels and fire pattern
- Title is the name in the shop, and what you type into a slot's Default Equipment. It has to be unique.
- Damage, cooldown, range, turn rate, inaccuracy, energy cost, fire mode and burst interval. Leave any of them at 0 to use the archetype's value.
- Fire Sounds and Impact Sounds are picked at random each shot. Beam loops can't be replaced.

The weapon model looks like this:
My Weapon ModWeapon
└─ body
└─ turret turns left and right
└─ barrel tilts up and down
├─ your barrel meshes
├─ fp1 firepoints at each muzzle, pointing forward (+Z)
└─ fp2
Replace the placeholder meshes under turret and barrel with yours. Without a turret child it can't turn, and without fp1, fp2... it has nowhere to shoot from. Scale makes the model bigger or smaller.
For guns built into the hull, turn on Hide Body. Shots then come from the slot itself.
Type the weapon's Title into a matching slot's Default Equipment.
Want your own laser bolt look? Add a ModProjectileLook next to a turret, cannon or omni ModSlot. The slot's default weapon fires your bolt, other weapons fitted there keep their own. Speed and damage don't change, and missiles and beams ignore it.
- Style: Stretched Billboard (soft streak), Cross (solid from any angle) or Mesh (your own mesh)
- Core Color and Glow Color: HDR colours, turn the intensity up to make it glow
- Length and Width in meters
- Shape: Soft or Capsule (a glowing tube)
- Trail: None, Glow or Smoke
- Add Light: a light on each bolt. Looks great, but it's expensive on Quest.
Modding support: https://discord.gg/4aCZ56W