FInteractionDelegates
Broadcast synchronously when a pawn interacts with an actor — AFTER the interactable's own reaction, BEFORE the Visual Script OnInteract pins (the order the old direct QuestSystem call had). Consumers (quest objectives, analytics) resolve their system through the world at call time instead of the InteractionSystem naming them, so they can live in plugins.
- Module
- Game
- Header
#include "Gameplay/InteractionEvents.h"- Namespace
Mowo
Deliberately NOT the EventBus: DispatchImmediate runs handlers under the bus mutex, and an interact handler can cascade into Visual Script graphs that post events — a self-deadlock. This is a plain game-thread multicast with captureless handlers (registration order = call order; never register per-world state). A handler lives as long as the module whose code it is: unloading that module removes it.
Type aliases
| Alias | Description |
|---|---|
using FInteractHandler = void (*)(World& world, AActor& target) |
Public functions
| Returns | Name | Description |
|---|---|---|
void | AddInteractHandler | |
void | RemoveInteractHandler | |
void | BroadcastInteract | |
size_t | RemoveAllInModule | Drops every handler whose code lies in the unloading module. |
size_t | HandlerCount |
Function details
AddInteractHandler
static void AddInteractHandler(FInteractHandler handler)RemoveInteractHandler
static void RemoveInteractHandler(FInteractHandler handler)BroadcastInteract
static void BroadcastInteract(World& world, AActor& target)RemoveAllInModule
static size_t RemoveAllInModule(void* moduleHandle)Drops every handler whose code lies in the unloading module.
HandlerCount
static size_t HandlerCount()