Custom Shot Weapons
Last updated
Last updated
[ REQUIREMENTS ]
You need to have a fully set-up weapon to follow this guide properly.
See .
Refer to this tutorial for instructions on adding Custom Shot weapons. This section of the documentation will cover the same steps in detail.
Since 0.9.6, FPS Engine allows you to use custom methods on shoot, so you can create anything you´d like with that!
First, go to the scriptable object of the weapon you would like to modify, go under Shooting tab and change the Shoot Style to Custom
If continuous fire is true, your method will be called once per frame, otherwise you can just use the fire rate system that comes with FPS Engine. It is recommended to use Press And Hold Shoot method, as it’s the standard for any weapon.
Now, go to the Weapon Controller in Player, move to the Events tab, and under Custom Shot Events:
Assign the scriptable object we just modified.
Attach the object that has the component with the method we want to call. You can of course write custom scripts and attach them to the player and call them from here.
Select the method we want to call On Shoot.