Soulslike Framework Docs
  • Welcome to Soulslike Framework!
  • Framework Overview
    • About the Framework
    • Features & Systems
    • Before Purchasing
    • Personal Assistance
  • Getting Started
    • Setting up Animations
      • Setup Locomotion Blendspaces
      • Setup Custom Montages
    • Using the Utility Tools
      • Easy Setup Tool
      • Asset Creators
      • Asset Browsers
    • Actor Tags
    • Finding References
  • Workflow
    • Using a Custom Character
    • Creating & Editing Actions
    • Creating & Editing Stats/Attributes
    • Creating & Editing Status Effects
    • Creating & Editing Buffs
    • Creating & Editing Items
      • Creating & Editing Weapons
    • Creating an Enemy
    • Creating Cinematics
  • Animation Notifies
    • Damaging & Combo's
      • Register Attack Notify
      • Weapon Trace Notify
        • AI Weapon Trace Notify
      • Fist Trace Notify
        • AI Fist Trace Notify
      • Area of Effect Damage Notify
      • Spawn Projectile Notify
        • AI Spawn Projectile Notify
    • Defensive
      • Try Guard Notify
      • Hyper Armor Notify
      • Invincibility Frame Notify
    • Feedback
      • Weapon Trail Notify
        • AI Weapon Trail Notify
      • Camera Shake Notify
        • World Camera Shake Notify
      • Launch Field Notify
      • Chaos Field Notify
      • Footstep Notify
    • Miscellaneous
      • Input Buffer Notify
      • Interrupt Montage Notify
      • Camera Sequence Notify
      • Set Movement Mode Notify
      • AI State Notify
      • AI Rotate Towards Target Notify
      • Adjust Stat Notify
  • Components / Managers
    • Player Specific Components
      • Input Buffer
      • Action Manager
      • Combat Manager
      • Interaction Manager
      • Inventory Manager
      • Equipment Manager
      • Ladder Manager
      • Progress Manager
      • Save/Load Manager
      • Radar & Radar Element Components
      • Central Debug Component
    • Shared Components
      • Stat/Attribute Manager
      • Status Effect Manager
      • Weapon Collision Manager
      • Buff Manager
      • Loot Drop Manager
    • AI-Only Components
      • AI Interaction Manager
      • AI Behavior Manager
      • AI Combat Manager
      • AI Boss Manager
  • Extending Functionality
    • Using Motion Warping
    • Custom Saving/Loading
    • Adding New Settings
    • Extending Weapon Animsets
    • Weapon Specific Impact Sounds
    • Resetting Enemies After Resting
Powered by GitBook
On this page
  • How It Works
  • Example Usages

Was this helpful?

  1. Components / Managers
  2. Player Specific Components

Equipment Manager

PreviousInventory ManagerNextLadder Manager

Last updated 3 months ago

Was this helpful?

The Equipment Manager (AC_EquipmentManager) is one of the most sophisticated components in Soulslike Framework, responsible for dynamically managing equipment slots and their associated functionality. It provides a fully modular and customizable equipment system, allowing users to define and configure slots at runtime.

It is added to the PlayerController class by default (PC_SoulslikeFramework).

How It Works

  • Slot Initialization:

    • At runtime, equipment slots are generated using the provided Slot Table.

    • Each slot is assigned a unique identifier and type (e.g., Right Hand Weapon 1, Tool Slot 3), allowing the system to handle them flexibly.

  • Equipping Items:

    • The EquipItem method validates whether the item meets slot requirements:

      • Stat Requirements: Checks if the player has the required stats for the item.

      • Slot Compatibility: Ensures the item can be equipped to the intended slot type.

    • Upon successful validation, the item is equipped, triggering:

      • Stat Changes: Applies any bonuses provided by the item (e.g., Strength +5).

      • Visual Updates: Weapons/mesh updates reflecting the equipped item.

      • UI Updates: Refreshes the equipment screen to reflect the new item.

  • Unequipping Items:

    • The UnequipItem method removes the item from the slot, reversing any applied stat changes, visual changes and updating the UI.

  • Two-Hand Stancing:

    • Toggles between one-handed and two-handed modes for weapons that support it (e.g., switching a sword from single-hand to two-hand grip).

    • Adjusts animations and gameplay logic accordingly.

  • Helper Methods:

    • Includes various utility functions to streamline equipment management:

      • IsSlotOccupied: Checks if a slot currently has an item.

      • GetActiveWeaponSlot: Retrieves the currently active weapon for combat.

      • CanBlock: Determines if the equipped item allows blocking functionality.

Example Usages

Most functionality of the Equipment Component is utilized by the Equipment Widget.