The next thing we need to do is to create a weapon that will associate with the mesh we just created. In UFPS, any kind of weapon that uses some kind of resource is referred to as a UnitBank. These UnitBanks use Units to fire. To create a UnitBank perform the following steps:
Let's create a UnitBank for our weapon by going to the top menu and selecting UFPS | Wizards | Create Item Type | UnitBank.
Once created, go over to the Project tab and change the name of the
New UnitBank Type
file toCQAssaultRifle
by clicking on the file and renaming it (or by pressing F2).From the Inspector tab, under Display Name, change the value to
CQ Assault Rifle
and, under Unit, select the type of bullet you want to use. In this case, I will useMachinegunBullet
.Next, select the Capacity value to
32
. This means that the weapon can fire32
shots before it needs to be reloaded.Finally, we will drag and drop the file into the
Weapons
folder.