This is the main player controller script, which handles weapons, inputs and actions:
Option
Option
Option
Look Sensitivity: mouse sensitivity multiplier.
Weapon Prefabs: list of prefabs to spawn.
Fps Camera: first-person camera reference.
Aim Ik Motion: IK animation played when aiming.
Fire Mode Ik Motion: IK animation played when changing a fire mode.
This tab contains sound references for general actions, like drawing a pistol or jumping.
Walk and Sprint are lists of sounds that are randomly played when walking or sprinting.
Walk and Sprint define the frequency of walk and sprint sounds.
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:
All Tactical Shooter Pack 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.