Hivemind
  • 🔍Start Here
  • 💻Code Systems
    • 🐎Ultimate Horse System
      • Documentation
      • Integration Guide
    • 🚀Ultimate Spaceship System (USS) Knowledge Base
      • 📖USS Documentation
      • 🧩USS Integration Guide
    • 🚂Ultimate Train System
      • Dokumentation
      • Integration Guide
    • ⚔️Modular Character System
      • Documentation
      • Trailer
    • ⚒️Ultimate Building System Framework (UBS)
      • 🔍Introduction
      • Installation
        • Example Content Setup
      • Developer Settings
        • Initial Setup
        • Collision Channels
      • Quick Start
      • Ultimate Building System Component (UBS)
      • Buildable Definition
      • Buildable
        • Actions
        • Tag Qualifier Conditions
        • Dependencies
      • Proxy Behaviour
        • Trace Behaviour
        • Proxy Location Offset
        • Placement Conditions
        • Post Build Events
      • Using your own Meshes
      • Global Function References
  • ✨VFX
    • 🩸Realistic Blood VFX
      • Documentation
      • Video Tutorial
    • 🩸Stylized Blood VFX
      • Documentation
    • 💥Realistic Gun Effects
      • Documentation
    • ☁️Smoke & Fog VFX Knowledge Base
      • 📖Smoke & Fog Documentation
      • 📸Video Tutorials
  • 🏡Environments
    • 🌃 Cyberpunk City
      • Level Instance
      • Tech Tools
    • 🏰Modular Castle & Dungeon
      • Documentation
      • Trailer
    • 🏘️Modular Rural Town
      • Documentation
      • Trailer
Powered by GitBook
On this page
  • Dependencies
  • Properties:
  • Functions:
  1. Code Systems
  2. Ultimate Building System Framework (UBS)
  3. Buildable

Dependencies

Dependencies

Dependencies allow you to define conditions that a buildable relies on to avoid being destroyed. To implement a dependency, subclass the UBF_Dependency class and override the Name function to set up the logic. If the function returns true, the dependency passes; if it returns false, the buildable will be destroyed.

Properties:

  • bIsMandatory Determines whether this dependency is required for success.

    • True This dependency must pass. If it fails, the entire check fails, regardless of other dependencies.

    • False This dependency can fail as long as other dependencies succeed.

  • OwningBuildable Holds a reference to the buildable that owns this dependency.

Functions:

  • IsMandatory() Returns whether the dependency is mandatory for the buildable.

  • DependencyCondition() Override this function to define the specific condition for the dependency. It returns true if the dependency passes, and false if it fails.

  • InitializeDependency() Used to initialize any specific logic for the dependency. By default, this function does nothing unless overridden. You should set up bindings for other delegates or event dispatchers here.

PreviousTag Qualifier ConditionsNextProxy Behaviour

Last updated 7 months ago

💻
⚒️