Limen Framework 0.1 Help

ULimenCommandComponent

Overview

ULimenCommandComponent is a custom actor component designed to manage and execute commands. It provides functionality for broadcasting command requests through a multicast delegate, making it easy for other components or actors to listen and respond to these commands. The component can handle both single and multiple arguments for commands.

Properties

Type

Name

Access

Description

FCommandRequest

OnCommandRequested

Public

A multicast delegate that is broadcast when a command is requested. It includes the command name, arguments, and the requestor object.

Functions

Return Type

Signature

Description

void

ExecuteCommand(const FName& Command, const TArray

& Args, UObject* Requestor)

Executes a command with multiple arguments and notifies subscribers via OnCommandRequested. Only broadcasts if the component is active.

void

ExecuteCommand(const FName& Command, const FName& Arg, UObject* Requestor)

A convenience overload that executes a command with a single argument by converting it to an array of names.

Usage & Implementation Notes

  • Threading Constraints: This component does not have any specific threading constraints.

  • Replication Requirements: It is not designed for replication and should be used on the server side only.

  • Memory Lifetime Management: The component has a default tick enabled, which means it will consume memory as long as its owning actor is active. Ensure proper management of the owning actor's lifetime to avoid memory leaks.

  • Initialization Dependencies: None.

22 May 2026