vrfpskit-docs
  • User Manual
    • Getting Started
    • Setup Troubleshooting
    • Damageable Component
    • XRHeldInputAction
  • Weapons
    • Included Weapons
      • Glock 17
      • HK-416 (AR-15)
      • AKS-74U
      • Winchester Model 1897
      • Mosin Nagant
      • HK Mp5
      • M67 Grenade
    • Firearm Components
      • Firearm
      • MagazineInteractor
      • CyclingFirearmAction
      • Input Components
        • FirearmTrigger
      • Physical Input Components
        • PhysicalUnlockActionTrigger
        • PhysicalFireSelectInteractor
        • MagazineCollisionDetacher
    • Creating Firearms
      • Animating the Firearm
  • Multiplayer
    • Authority Handling
    • Multiplayer Troubleshooting
    • Mirror Networking Docs
  • XR Interaction Toolkit Docs
  • Support Discord
Powered by GitBook
On this page
  1. Weapons
  2. Firearm Components

CyclingFirearmAction

Last updated 1 year ago

CyclingFirearmAction represents the action of a weapon that cycles in order to load the next round. This is applicable to most modern day firearms, however if you would like to create say a Break-Action shotgun you'd have to write your own FirearmAction component.

FirearmCyclingAction can be manipulated and made Interactable with the FirearmCyclingActionInteractable Component

The CyclingFirearmAction exposes a few variables that you can customize to your own needs:

  • automaticCycling - Lets you determine if the firearm should cycle after being fired. Turning this off would create a Bolt-Action firearm, where you manually have to cycle every cartridge in to the chamber.

  • roundsPerMinute - Determines the spring strength of your Firearm, which in turn determines how quickly the next round is loaded and how soon your Firearm can be fired again. Becomes especially noticeable in Full-Automatic firing.

  • lockOnEmptyMag - Decides whether an empty Magazine should lock the action back in the open position to emulate the real Firearm counterpart. The real AK47 does not feature bolt lockback, and will therefore have to be manually cycled after every reload (with an empty chamber).

The AR-15 features a Cycling Action