Gates › Players › Has Role

Has Role

Exec gate Players 2 in 2 out 1 config ⬚ 1x1

Checks whether a player belongs to a named permissions role; use it for role-specific controls or access areas.

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 2 wire inputs: Exec (exec), Player State (entity). Produces 2 outputs: Has Role (bool), Exec Out (exec). Configured with 1 property (set on the gate, not wired): Role Name (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.

Wire inputs

Wires you feed into the gate.

Display name Type Tooltip
Exec exec No tooltip in source
Player State (PlayerState) entity No tooltip in source

Wire outputs

Wires the gate produces.

Display name Type Tooltip
Has Role (bHasRole) bool 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
Role Name (RoleName) struct No tooltip in source

Source details

Brick asset
B_1x1_Gate_Exec_PlayerState_HasRole
Component class
BrickComponentType_Exec_PlayerState_HasRole
Kind
exec
Family
PlayerState
Half size
5 × 5 × 2

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