Set Variable
Replaces the value stored in the connected Var when executed. Use it to save state such as the current score, selected mode, or target speed.
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 3 wire inputs: Exec (exec), Value (any), Var Ref (varRef). Produces 1 output: Exec Out (exec). Configured with 1 property (set on the gate, not wired): Change Type (bool).
Wire inputs
Wires you feed into the gate.
| Display name | Type | Tooltip |
|---|---|---|
| Exec | exec | No tooltip in source |
| Value | any | No tooltip in source |
| Var Ref (VarRef) | varRef | No tooltip in source |
Wire outputs
Wires the gate produces.
| Display name | Type | Tooltip |
|---|---|---|
| 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 |
|---|---|---|
| Change Type (bChangeType) | bool | No tooltip in source |
Source details
- Brick asset
- B_1x1_Gate_Exec_Var_Set
- Component class
- BrickComponentType_Exec_Var_Set
- Kind
- exec
- Family
- Var
- Half size
- 5 × 5 × 2