Add New Summon-able Gun
To Add New Summon-able Gun, You'll have to create new GunVariantDataStore.
- In the hierarchy, Head over to
Logics/System/SamplelMassGun/VariantData/
. - Create new empty GameObject, Rename it as you like, and add GunVariantDataStore component.
- Change
Unique Id
to unassigned new ID. - Change
Weapon Name
to represent this new gun's name
Now you technically have an empty gun variant available to use!
Configuring GunVariantDataStore
To make actually usable gun, You'll need to configure GunVariantDataStore.
To configure GunVariantDataStore, follow these steps:
- Set gun source
Model
andModel Offset
property.- I'd recommend putting model GameObject under
GunVariantDataStore
like this: // TODO: put up an image - You could attach
Animator
component to Model object to receive parameters from the Gun. See more at Setup Animator for a Gun.
- I'd recommend putting model GameObject under
- Set gun
Shooter Offset
for - Choose one of Gun Behaviour component for this
GunVariantDataStore
- Add it to the GameObject that has
GunVariantDataStore
attached. - Configure it as you like, See each Gun Behavior's information at each behaviour's documentation page.
- Add it to the GameObject that has