MagazineInteractor

MagazineInteractor hitbox on the

MagazineInteractor extends XRInteractionToolkit's XRSocketInteractor and as such mostly behaves as one. It checks magazine combability, cooldowns, updates Firearm.magazine when a magazine is attached, and limits player detaching. The MagazineInteractor also has a custom attachment point for the magazines, the "Weapon/model/magazineRenderPoint" object, which is manipulated by the Firearm's animations.

The allowGrabMagazine variable determines whether the player can simply grab the attached Magazine in order to detach it. This is done to reflect the real life Firearm's Magazine detach process, which often can require further input. Most AK's simply allows you to grab the magazine, while the AR-15 platform requires you to engage the magazine release button.

AK Emergency Reload [@AleksWorkshop]

You can extend detaching behaviour with the MagazineEjectorInput Component, which detaches magazine upon controller input. The AK platform also features the unique MagazineCollisionDetacher component, which detaches the current magazine upon collision, making it possible to perform the famous "Emergency AK Reload"

Last updated