The player can currently pick up both weapons. However they may conflict and end up sharing animations on occasions. Furthermore the player blueprint has no way of handling multiple weapons and switching between those weapons.
Implementation
A seperate component will need to be created to handle weapon instances for the player. This may refactor weapon functionality on the player and refractor weapon specific functionality from the player. This may require the character to pass its instance of the weapon manager (or interface) to the actor that is trying to access it.
In the player class:
Create an interface for the player, include the method "GetWeaponManager", this will give an interface to that component.
The GetWeaponManager weapon should only get the WeaponManager interface.
Acceptance Criteria
[x] A player can switch between weapons
[x] A player can pickup weapons
[x] The same weapon can be set multiple times but will override the previous instance of the weapon
Description
The player can currently pick up both weapons. However they may conflict and end up sharing animations on occasions. Furthermore the player blueprint has no way of handling multiple weapons and switching between those weapons.
Implementation
A seperate component will need to be created to handle weapon instances for the player. This may refactor weapon functionality on the player and refractor weapon specific functionality from the player. This may require the character to pass its instance of the weapon manager (or interface) to the actor that is trying to access it.
In the player class:
Acceptance Criteria