Skip to main content

Tactical Shooter Character

TacticalShooterCharacter is the player-controlled prefab in the pack, which is used to preview weapon animations in Unity: This prefab has a simple structure:
  • Main Game Object (contains all components aside from Animator).
    • Player Mesh (has Animator attached to it).
      • root/ik_hand_gun (has all guns attached to it).
      • root/.../head/FPCamera (first-person camera).
Let’s take a look at the main components used by the character:

Tactical Shooter Player

This is the main player controller script, which handles weapons, inputs and actions:
  • Look Sensitivity: mouse sensitivity multiplier.
  • Weapon Prefabs: list of prefabs to spawn.
  • Fps Camera: first-person camera reference.
Tip: This component is only used as an example to showcase the weapons, so it is not necessary to use the pack.
The TacticalShooterPlayer supports these actions: Most of the actions (Reload, MagCheck, Inspect, Fire, ChangeFireMode, Aim, ToggleAttachment) are implemented in the weapon script, which we will cover in the next page.

Recoil Animation

This system is covered here.