struct
SmartObjectComponent
A world object an agent can claim and use — a bench, a vending machine, a window to look out of (UE5 SmartObjects). The object advertises an activity and N slots laid out along its local X axis; an agent claims one slot, walks to it, uses it for Use Duration and releases it, after which the slot rests for Cooldown. Claims are exclusive, so two agents never sit on one seat.
- Module
- AINavigation
- Header
#include "AINavigation/SmartObjectComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
std::string | activity | What using this object means ("Sit", "Inspect", "Hide"). Queries filter on it; empty matches only an empty query. Default "Use". |
int32_t | slotCount | Default 1. |
float | slotSpacing | Distance between neighbouring slots along the object's local X. Default 0.8f. |
Vec3 | slotOffset | Where a user stands, in the object's local space, before slot spacing. Default Vec3(0.0f, 0.0f, 0.6f). |
float | useDuration | Default 4.0f. |
float | cooldown | Default 0.0f. |
std::vector<EntityID> | claimants | Per slot: the claiming agent (INVALID_ENTITY = free) and the seconds left before a released slot can be claimed again. |
std::vector<float> | cooldownLeft |
Constructors
| Signature | Name | Description |
|---|---|---|
SmartObjectComponent() = default | SmartObjectComponent |
Function details
SmartObjectComponent
C++
SmartObjectComponent() = defaultGenerated from AINavigation/SmartObjectComponent.h via ainavigation.json · Oct 27, 2026Version 1.0.0