Skip to main content

Change A Weapon's Projectile

In this tutorial, you’ll learn to change the projectile a weapon uses by making the Rocket Launcher shoot Lost Souls.

  1. Open Asset Browser.
  2. Navigate to the projectile decl for the weapon. For this tutorial, go to: projectile → projectile → player → rocket_launcher
  3. Right Click on the rocket_launcher thumbnail.
  4. Select Edit.
  5. The Decl Editor will open displaying the properties for the rocket launcher projectile.
info

Keep in mind your Decl Editor may be in a nested tab, or in a pane other than the center pane if you have recently used it.

  1. In the Decl Editor, locate Not Hitscan Info → entityDef
info

Hitscan refers to weapons that shoot bullets. Not Hitscan encompasses other weapon projectiles.

The entityDef defines the projectile that will be used.

  1. Right Click the entityDef decl → Select Pick Value (You can also simply click on the decl to open up the value picker.)
  2. A filtered Asset Browser window will pop up. Navigate to: projectile_ent → ai → painelemental → lostsoul_linear
  3. Click the lostsoul_linear thumbnail
  4. Click OK to use this as the new projectile entityDef decl.
  5. Click the Save button in the Decl Editor toolbar.