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 Idto unassigned new ID. - Change
Weapon Nameto 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
ModelandModel Offsetproperty.- I'd recommend putting model GameObject under
GunVariantDataStorelike this: // TODO: put up an image - You could attach
Animatorcomponent 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 Offsetfor - Choose one of Gun Behaviour component for this
GunVariantDataStore- Add it to the GameObject that has
GunVariantDataStoreattached. - Configure it as you like, See each Gun Behavior's information at each behaviour's documentation page.
- Add it to the GameObject that has