Gates ›
Interactive ›
Square Button
Square Button
Outputs a wire signal when clicked. Remains active so long as the interact button is held down.
Diagram
Ports drawn from the source data: inputs left, outputs right, config inside.
How it's used
A button brick players press. Outputs whether it’s held, who pressed it, and how many are holding it.
- Door / elevator controls
- Interactables
- Per-player triggers
Open a door while held
- Place a Square Button near the door.
- Wire its Held output into the door's open control.
- Its Character output tells you who pressed it; wire that where you need the player.
Port names (Held, Character, Holder Count) come from the inventory. Behavior beyond that: verify in-game.
Technical details — ports, config & source
Wire inputs
Wires you feed into the gate.
| Display name | Type | Tooltip |
|---|---|---|
| Allow Nearby Interaction (bAllowNearbyInteraction) | bool | Allows players near the button in third person to interact with this brick without aiming at it. |
| Hidden Interaction (bHiddenInteraction) | bool | This interactable will not change the player's crosshair or pop up any labels. |
| Press Sound (PressSound) | any | Sound played when you press the button down. |
| Prompt Custom Label (PromptCustomLabel) | string | Text label to use when the prompt widget appears. |
| Release Sound (ReleaseSound) | any | Sound played when you release the button. |
Wire outputs
Wires the gate produces.
| Display name | Type | Tooltip |
|---|---|---|
| Held (bHeld) | bool | Whether the button is held. |
| Character | character | Character that just interacted with this brick. |
| Press Count (PressCount) | int | Number of people currently holding this button. |
Source details
- Brick asset
- B_Button_Square
- Component class
- Component_Internal_AnimatedButton
- Kind
- internal
- Family
- —
- Half size
- 5 × 5 × 2