Skip to content

Behavior_Gun

Guns are ranged weapons widely used in combat to launch projectiles. This Behavior_Gun community component allows you to finish the basic settings of your gun.

This component includes:

Property Description
Reloading mode Determines whether reloading consumes the ammo count in the backpack. Currently, only Unlimited mode is supported, that is, reloading will not affect the amount of ammo as it's unlimited.
Increase damage Determines how much damage a bullet causes
Initial ammo count The initial ammo count in the magazine, which can exceed the magazine capacity
Magazine capacity The capacity of the magazine

Note:A Behavior_Gun component can only be added to one tool.

  • Behavior_Tool
  • UI_Reload
  • UI_Interact