Gun
Guns are ranged weapons widely used in combat to launch projectiles. This Gun community component allows you to finish the basic settings of your gun. The gun is a piece of equipment that can be stored and managed in the inventory.
This component includes:
| Property | Description | 
|---|---|
| Add attack | Determines the amount of attack value that a gun adds. Ranges from 1 to 999999. Default: 46. | 
| Magazine Initial Amount | The initial ammo count, which can exceed the magazine capacity. Ranges from 1 to 1500. Default: 35. | 
| Magazine Capacity | The capacity of the magazine. Ranges from 1 to 1500. Default: 35. | 
| Magazine Reloadable | Determines whether a gun is reloadable. Enabled by default. | 
| BonePoint | Determines which hand the gun's handle is held in | 
| Position | The gun offset from the bone point's position | 
| Rotation | The gun offset from the bone point's rotation | 
| Shooting Gap | The amount of time in seconds it takes for a gun to fire off a shot again. Ranges from 0.2 to 5. Default: 0.2. | 
| Fire Sound | The sound of a gun being shot | 
| Reload Sound | The sound of a gun being reloaded | 
Note:
- 
A Gun component can only be added to one tool.
 - 
If you attach the legacy Gun community component released before August 11, 2023 to gun models, these guns can still be used in-game but will not become equipment that can be stored and managed in the game's inventory.
 
Related components
This Component must be used with UI_Reload if Magazine Reloadable is enabled.