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.
- Open Asset Browser.
- Navigate to the projectile decl for the weapon. For this tutorial, go to: projectile → projectile → player → rocket_launcher
- Right Click on the rocket_launcher thumbnail.
- Select Edit.
- 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.
- 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.
- Right Click the entityDef decl → Select Pick Value (You can also simply click on the decl to open up the value picker.)
- A filtered Asset Browser window will pop up. Navigate to: projectile_ent → ai → painelemental → lostsoul_linear
- Click the lostsoul_linear thumbnail
- Click OK to use this as the new projectile entityDef decl.
- Click the Save button in the Decl Editor toolbar.