Some of this process is similar to creating a melee weapon so check that out for additional screenshots.
Follow the next steps to create a new ranged weapon & attack
https://lh4.googleusercontent.com/7uYTt82byLvrPidHYezHZbQ0RFZ_xuDVtYk_iukZ96eD_4R3eXSsZ43xfIZjSrWMRdDJzt0oZ5vzr3VEQDAShlabkfqIvjCRdDmpxUhKvZOrVj8x0BewADJHYVgBnzQt9_0gHJ3ZBTuzOLwU5eEDcYXZZoQKI7Z9qeu5dvfwN1te395vNUeKaWXNUg
Add an AudioSource at the top and optionally assign the ShotSound & NoAmmoSound on the ShotAttack component
Back on the WeaponData. Assign the new prefab on the Prefab property
Set the AttackDuration initially to be 1. This is how long the attack will be active during shot and also determines the time between shots. The AttackDelay indicated how long passes during the animation before the shot is taken.
Finally, lets setup the attachment on the character. On your WeaponData, set the socket handle to one of the existing player sockets: PlayerLHand or PlayerRHand.
Go to the Character prefab and drop your WeaponData on the PlayerEquipment component. This will allow you to preview how the object looks attached to the player
https://lh5.googleusercontent.com/bnc_DUUwLhKhnpfks0eCWdHUPef2wdydiNmsV_oL1YZJOuL-YFGDjzf-GA8q5TAVN40v9ZW5WjVnydUi7HoltR43NSSR1y9PfmUMpteW6uJdXaX1wPMJhsScXKQ429hx5NMFjQcjkuGsiGkLWzi5Y6trPjR6DjPEes6dhS2Q_HZ-dW_X8qVefXNf1w