S.B.I - Simple Basic Interaction Documentation
  • S.B.I - Simple Basic Interaction
  • Setup
  • Content Overview
  • Interactable Actors
  • Basic Inventory
  • Examples
  • L_Demo Map: Escape Room Example
  • Changelog
  • Contact
Powered by GitBook
On this page

Setup

PreviousS.B.I - Simple Basic InteractionNextContent Overview

Last updated 1 month ago

Setup

Setting up S.B.I. (Simple Basic Interactions) is quick and easy. Follow the steps below to get your player character ready to interact with the world.


1️⃣ Add the Interaction Component

Add the AC_PlayerInteractions Actor Component to your Player Pawn or Character.

This component handles all logic related to detecting and interacting with objects in the world.


2️⃣ Assign the Active Camera

You’ll need to assign your active player camera to the component. This is important because all interaction line traces originate from this camera’s forward direction.

  • For first-person and third-person setups, this should be all you need!

  • If you switch cameras during gameplay (e.g. cutscenes, aim mode, etc.), make sure to update the component with the new active camera.


3️⃣ Adjust Distance to Interact (Optional)

Inside the AC_PlayerInteractions component, you can modify the DistanceToInteract float. This value defines how far the interaction line trace will reach from the camera.


4️⃣ Top-Down Games (Optional)

If you're working on a top-down or camera-independent setup, you can customize the FindInteractions function inside AC_PlayerInteractions to suit your input direction or world location logic.


5️⃣ Input Setup

By default, the interaction system uses an Enhanced Input Action called IA_Interaction, which is mapped to the E key.

⚠️ If you're already using E for other gameplay elements, don’t forget to remap the key or reassign your input bindings.