Gates › World › Spawn Prefab

Spawn Prefab

Exec gate World 7 in 2 out 1 config ⬚ 1x1

Spawns a prefab relative to this gate with optional velocity, lifetime, and live-instance limit; use it for vehicles, enemies, or pickups.

Diagram

Ports drawn from the source data: inputs left, outputs right, config inside.

How it's used

Structural overview — derived from this gate's ports, not from tested behavior. Takes 7 wire inputs: Destroy All (exec), Exec (exec), Lifetime (float), Limit (int), Spawn Offset (vector), Spawn Offset Rotation (rotator), Spawn Velocity (vector). Produces 2 outputs: Entity (entity), Exec Out (exec). Configured with 1 property (set on the gate, not wired): Prefab (struct).

No curated example for this gate yet. The shape above is accurate (from the inventory); what it does in practice should be confirmed in-game.

Technical details — ports, config & source

Wire inputs

Wires you feed into the gate.

Display name Type Tooltip
Destroy All (DestroyAll) exec No tooltip in source
Exec exec No tooltip in source
Lifetime float No tooltip in source
Limit int No tooltip in source
Spawn Offset (SpawnOffset) vector No tooltip in source
Spawn Offset Rotation (SpawnOffsetRotation) rotator No tooltip in source
Spawn Velocity (SpawnVelocity) vector No tooltip in source

Wire outputs

Wires the gate produces.

Display name Type Tooltip
Entity entity No tooltip in source
Exec Out (ExecOut) exec No tooltip in source

Configuration properties

Set on the gate itself in its properties panel — not wired. Distinct from inputs.

Display name Type Tooltip
Prefab struct No tooltip in source

Source details

Brick asset
B_1x1_Gate_Exec_PrefabSpawner
Component class
BrickComponentType_Exec_PrefabSpawner
Kind
exec
Family
PrefabSpawner
Half size
5 × 5 × 2

From logic_gate_inventory.simple.json @ 9660107, supplemented by gate_docs.json. Documented behavior, not independently tested.