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
  • Callable Functions
  • Delegates/Event Dispatchers
  • Overridable Functions
  1. Code Systems
  2. Ultimate Building System Framework (UBS)

Buildable

Subclassing the buildable class will allow you to create functionality that isn’t otherwise available, such as a crafting station. Just remember to set the Buildable Class in the Buildable Definition so the right class is being spawned for that definition.

Callable Functions

  • TryDestroyBuildable() This will attempt to destroy the buildable. Always use this function when you want to destroy a buildable. Using the regular Destroy() function might cause issues.

  • GetAllActions() Get all available actions for this Buildable.

  • GetOwnedGameplayTags() Get all owned tags on this Buildable.

  • GetClosestMatchingSocket() Get the closest socket matching the Proxy Actors socket tag requirements.

  • GetClosestSocket() Get the closest socket to the given world location, regardless of the socket tag requirements.

  • GetBuildableDefinition() Get the buildable definition of this Buildable.

  • FindSocketByName() Find a socket by name, returns false if the socket does not exist.

  • OccupySocket() Makes the Buildable to Attach occupy the target socket.

  • ReleaseSocket() Releases the Socket which the Attached Buildable is occupying.

  • GetAttachedBuildable() Get the buildable which is attached to this socket.

  • GetAttachedBuildables() Get all buildables which are attached to this buildable.

Delegates/Event Dispatchers

  • OnBuildableDestruction() You can bind to this event. Will be executed when upon Buildable Destruction.

  • OnBuildableAttached() You can bind to this event. Will execute upon new buildable being attached to this one.

  • OnBuildableDetached() You can bind to this event. Will execute upon other attached buildable being detached from this one.

Overridable Functions

  • OnBuildableDestroyed() Overridable Event. This allows you to add your own logic to what should happen upon this Buildable being destroyed.

PreviousBuildable DefinitionNextActions

Last updated 7 months ago

πŸ’»
βš’οΈ