LootLocker Unreal SDK 10.4.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
Triggers

Detailed Description

Invoke named trigger events that grant server-configured rewards.

Triggers are created in the console and linked to reward payloads (assets, currency, progression points). Limited Triggers may be invoked at most N times per player — ideal for one-time milestones, achievements, or first-launch gifts. Unlimited Triggers can be invoked repeatedly for recurring rewards such as per-kill drops or ad-watch grants. Rewards are automatically granted to the player's inventory and wallets.

See the LootLocker documentation.

Typedef Documentation

◆ FLootLockerInvokeTriggersByKeyResponseDelegate

typedef void(* FLootLockerInvokeTriggersByKeyResponseDelegate) (FLootLockerInvokeTriggersByKeyResponse)

C++ response delegate for invoking a set of triggers by key.

Enumeration Type Documentation

◆ ELootLockerTriggerFailureReasons

enum class ELootLockerTriggerFailureReasons : uint8
strong

Possible reasons for a trigger key to fail.

Enumerator
Trigger_limit_reached 
Key_not_found 
Reward_not_found 
Player_not_in_segment 

Function Documentation

◆ InvokeTriggersByKey()

static FString ULootLockerSDKManager::InvokeTriggersByKey ( const TArray< FString > &  KeysToInvoke,
const FLootLockerInvokeTriggersByKeyResponseDelegate OnComplete,
const FString &  ForPlayerWithUlid = "" 
)
static

Invoke triggers by key.

The response includes lists of executed trigger keys and failed triggers (with reasons); a successful request may still contain failures—inspect inner results.

Parameters
KeysToInvokeTrigger keys to invoke
OnCompleteDelegate for handling the server response
ForPlayerWithUlidOptional: Execute for the specified player ULID (default player if empty)
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

Typedefs

typedef void(* FLootLockerInvokeTriggersByKeyResponseDelegate) (FLootLockerInvokeTriggersByKeyResponse)
 C++ response delegate for invoking a set of triggers by key.
 

Enumerations

enum class  ELootLockerTriggerFailureReasons : uint8 { ELootLockerTriggerFailureReasons::Trigger_limit_reached = 0 , ELootLockerTriggerFailureReasons::Key_not_found = 1 , ELootLockerTriggerFailureReasons::Reward_not_found = 2 , ELootLockerTriggerFailureReasons::Player_not_in_segment = 3 }
 Possible reasons for a trigger key to fail. More...
 

Functions

static FString ULootLockerSDKManager::InvokeTriggersByKey (const TArray< FString > &KeysToInvoke, const FLootLockerInvokeTriggersByKeyResponseDelegate &OnComplete, const FString &ForPlayerWithUlid="")
 Invoke triggers by key.