Sweep/Raycast
Traces a ray or sphere outward from this brick in a chosen local direction, with optional spread; use it for simple buttons, weapons, or sensors.
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 5 wire inputs: Collision Channel (int), Distance (float), Exec (exec), Radius (float), Spread Cone Angle (float). Produces 9 outputs: Exec Out (exec), Hit (exec), Hit Brick (brick), Hit Color (color), Hit Distance (float), Hit Entity (entity), Hit Location (vector), Hit Normal (vector), Miss (exec). Configured with 10 properties (set on the gate, not wired): Detect Bricks (bool), Detect Map (bool), Detect Physics (bool), Detect Players1 (bool), Detect Players2 (bool), Detect Players3 (bool), Detect Players4 (bool), Only Hit Player Body Parts (bool), Spread Biased Towards Center (bool), Direction (enum).
Wire inputs
Wires you feed into the gate.
| Display name | Type | Tooltip |
|---|---|---|
| Collision Channel (CollisionChannel) | int | No tooltip in source |
| Distance | float | No tooltip in source |
| Exec | exec | No tooltip in source |
| Radius | float | No tooltip in source |
| Spread Cone Angle (SpreadConeAngle) | float | No tooltip in source |
Wire outputs
Wires the gate produces.
| Display name | Type | Tooltip |
|---|---|---|
| Exec Out (ExecOut) | exec | No tooltip in source |
| Hit | exec | No tooltip in source |
| Hit Brick (HitBrick) | brick | No tooltip in source |
| Hit Color (HitColor) | color | No tooltip in source |
| Hit Distance (HitDistance) | float | No tooltip in source |
| Hit Entity (HitEntity) | entity | No tooltip in source |
| Hit Location (HitLocation) | vector | No tooltip in source |
| Hit Normal (HitNormal) | vector | No tooltip in source |
| Miss | 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 |
|---|---|---|
| Detect Bricks (bDetectBricks) | bool | No tooltip in source |
| Detect Map (bDetectMap) | bool | No tooltip in source |
| Detect Physics (bDetectPhysics) | bool | No tooltip in source |
| Detect Players1 (bDetectPlayers1) | bool | No tooltip in source |
| Detect Players2 (bDetectPlayers2) | bool | No tooltip in source |
| Detect Players3 (bDetectPlayers3) | bool | No tooltip in source |
| Detect Players4 (bDetectPlayers4) | bool | No tooltip in source |
| Only Hit Player Body Parts (bOnlyHitPlayerBodyParts) | bool | No tooltip in source |
| Spread Biased Towards Center (bSpreadBiasedTowardsCenter) | bool | No tooltip in source |
| Direction | enum | No tooltip in source |
Source details
- Brick asset
- B_1x1_Gate_Exec_SweepSimple
- Component class
- BrickComponentType_Exec_SweepSimple
- Kind
- exec
- Family
- —
- Half size
- 8 × 5 × 2