In this course segment, we’ll learn how to create a weapon system using the C++ programming language, and package it as our own plugin.
https://dev.epicgames.com/community/learning/tutorials/7xeR6/unreal-engine-build-your-ranged-weapon-system-plugin-c