Ends Today: Save up to 95% on the Time Travel Mega Bundle!

Overview video

Demo Project Video


What is it?

In first-person games, you usually interact with the world. You pick stuff up, you press buttons, and so on.

This plugin introduces a simple component to make this happen by using linecasts to look for items that can be interacted with.

You can then implement logic on items or on your pawn by using the following events:

* OnFocusStart

* OnFocusEnd

* OnInteract.



What problem does it solve?

It's a simple way to get first person interactions going with events without having to implement your own.



How does it work?

To set it up, you do this:

  1. Add the SimpleFirstPersonInteraction component to your first-person pawn
  2. Implement the interface to the item you want to interact with

The SimpleFirstPersonInteraction component will look for the objects and when you come close enough, it will trigger the following events in the items that implement the interface:

* OnFocusStart: When you are close enough and look at the object

* OnFocusEnd: When you are too far away from the object or stop looking at it

* OnInteract: If you interact with the object, this is triggered manually from the pawn, e.g. by clicking LMB

Technical Details

Features:

  • Easy to set up -- Add a component to your pawn and the interface to your objects
  • Simple workflow -- The events (OnFocusStart, OnFocusEnd, OnInteract) can be easily extended for gameplay mechanics like picking stuff up, pressing buttons, etc.

Code Modules:

  •  SimpleFirstPersonInteraction (Runtime)

Number of Blueprints: 0

Number of C++ Classes: 2 (SimpleFirstPersonInteractionComponent.h, InteractableItemInterface.h)

Network Replicated: No

Supported Development Platforms: Windows 64-bit

Supported Target Build Platforms: Windows 64-bit

Documentation: https://niflheim-games.gitbook.io/simple-first-person-interaction-docs/

Example Project (5.1): Here

Playable Demo: Here

N
NiflheimGames
All Assets by Author
9.58 
Platforms Windows 64-bit
UE Versions 5.1
Tags FIRST PERSON, SIMPLE, INTERACTION, CODE PLUGIN
Release date 21.04.2023

Similar products

Image
Sign In
Image
Sign Up
Image
Recovery