FPS Animation Pack Unity
  • 👋README
  • tutorials
    • 💻Installation
    • 📚Overview
    • ↗️BiRP, URP and HDRP
    • 🎯Retargeting Animations
    • Replacing Weapons
    • 🏃‍♂️Procedural Animation
    • ➕FPS Animation Framework Integration
  • Gameplay
    • 📘Player Prefab
    • 🔫Weapon System
    • 🔉Sound Effects
  • animations
    • 🦾Character
    • 🔫Weapon
    • 📷Camera
    • 💥Recoil
Powered by GitBook
On this page
  • Overview
  • Animation Events
  • PlayPlayerSound
  • PlayWeaponSound
  1. Gameplay

Sound Effects

PreviousWeapon SystemNextCharacter

Last updated 2 months ago

Overview

All sound effects are played via the Audio Source component attached to the character:

FPS Player Sound component is used to play general sounds, not specific to any weapon. Other sounds, like reloads or firing, are played by the weapons - they access the character's Audio Source and play the target sound effect.

Animation Events

Many sounds, like reloads, aiming, walking, or fire mode switching are played via animation events. Events are added directly to the Animation Clip and then are automatically triggered in runtime. There are 2 types of animation events.

PlayPlayerSound

This event has an input index parameter, which defines the index of the target sound. In this case, sounds will be selected from this list:

PlayWeaponSound

This event is added to reloading animations. Sounds are selected from:

🔉
Audio Source.
Player sound event.
FPS Player Settings.
FPS Weapon Settings.