Map Variable
Stores values under unique keys and provides a Map Var Ref for map gates. Use it to associate player names, IDs, objects, bricks, or components with scores, settings, or other data.
Brick summary: Allows defining a map variable, which can be modified and read via other Map Variable gates.
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 no wire inputs. Produces 1 output: Map Var Ref (varRef). Configured with 1 property (set on the gate, not wired): Value (struct).
Wire inputs
Wires you feed into the gate.
No wire inputs.
Wire outputs
Wires the gate produces.
| Display name | Type | Tooltip |
|---|---|---|
| Map Var Ref (MapVarRef) | varRef | No tooltip in source |
Configuration properties
Set on the gate itself in its properties panel — not wired. Distinct from inputs.
| Display name | Type | Tooltip |
|---|---|---|
| Value | struct | No tooltip in source |
Source details
- Brick asset
- B_1x1_Gate_Variable_Map
- Component class
- BrickComponentType_MapVar
- Kind
- pseudo
- Family
- MapVar
- Half size
- 5 × 5 × 2