Skip to content

Sein Production Data

Struct · FSeinProductionPayload : FSeinPayload

Parent: Sein Component Data

#include "Components/SeinProductionPayload.h"

deterministic: safe in simulation code

Lets an entity produce units or research from a queue. Any entity can carry it, not only buildings. What it produces is decided by its abilities: an ability whose graph calls Enqueue Production with a producible class appends an entry to Queue. The component holds the queue, rally and spawn settings, not a list of producibles.

int32 MaxQueueSize · default 5

Editable in defaults and on instances · Blueprint read-only

Maximum queue depth.

TArray<FSeinProductionQueueEntry> Queue

Blueprint read-only

Current production queue.

FFixedPoint CurrentBuildProgress

Blueprint read-only

Build progress of the current (front) queue entry.

bool bStalledAtCompletion · default false

Blueprint read-only

True when the front item has finished building but cannot complete, usually because its at-completion cost, such as supply, is unaffordable. It completes once the cost can be paid.

bool bHasRallyPoint · default false

Editable in defaults and on instances · Blueprint read and write

Whether produced units move to a rally point. Set Rally Point and Set Rally Entity set it; Clear Rally Point clears it.

bool bRallyToEntity · default false

Editable in defaults and on instances · Blueprint read and write

When true, produced units move to RallyEntity’s location at the moment they finish. When false, they move to RallyTransform’s location.

FFixedTransform RallyTransform · shown when !bRallyToEntity

Editable in defaults and on instances · Blueprint read and write

Used when bRallyToEntity is false: produced units move to this transform’s location.

FSeinEntityHandle RallyEntity · shown when bRallyToEntity

Editable in defaults and on instances · Blueprint read and write

Used when bRallyToEntity is true: produced units move to where this entity is when they finish.

FFixedTransform SpawnPointOffset

Editable in defaults and on instances · Blueprint read and write

Producer-LOCAL-space offset where finished units appear. Composed with the producer’s world transform at spawn time: WorldSpawn = Producer.WorldTransform * SpawnPointOffset so the offset rotates with the producer (a barracks placed at any yaw spawns its riflemen out of the same door regardless of facing). The offset’s rotation also carries to the produced unit’s initial facing — point it toward the rally walkway and units come out aimed the right way before the rally Move kicks in.

Default = identity (units spawn at the producer’s pivot, typically inside the mesh — designers must override). Authored on the producer BP’s Production Component. The editor’s component visualizer draws a green marker + forward arrow at the resolved world position when the producer is selected.

C++ members (3)
  • bool IsProducing() const;
  • FFixedPoint GetProgressPercent() const;
  • bool CanQueueMore() const;