Limen Framework 0.1 Help

ULimenHoldComponent

Overview

ULimenHoldComponent is an actor component that allows actors to hold and release other actors. It handles replication of the held item across the network, ensuring that all clients are aware of the current state of what is being held. The component provides public functions for holding and stopping the hold, as well as checking if something is currently being held.

Properties

Type

Name

Access

Description

TObjectPtr<AActor>

Current

Private

The current actor being held.

TObjectPtr<AActor>

Previous

Private

The previous actor that was held before the current one.

Functions

Return Type

Signature

Description

void

GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override

Registers properties to be replicated across the network.

void

Hold(AActor* InActor)

Starts holding an actor.

void

StopHolding()

Stops holding any currently held actor.

bool

IsHoldingSomething() const

Checks if something is currently being held.

AActor*

GetActor() const

Returns the current actor being held.

Usage & Implementation Notes

  • Replication: The component uses replication to ensure that all clients are aware of the current state of what is being held.

  • Network Prediction: Network prediction is used for the Hold and StopHolding functions to improve performance by predicting the outcome on the client side before it is confirmed by the server.

22 May 2026