Blocker
Defined in: server/api.d.ts:1567
Invisible replicated collision volume.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Blocker(
id):Blocker
Defined in: server/api.d.ts:1572
Creates a script wrapper for an existing blocker with this ID; use Blocker.create() to create a blocker.
Parameters
Section titled “Parameters”number
Network entity identifier.
Returns
Section titled “Returns”Blocker
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”destroy()
Section titled “destroy()”destroy():
void
Defined in: server/api.d.ts:1603
Destroys this replicated collision volume.
Returns
Section titled “Returns”void
setVirtualWorld()
Section titled “setVirtualWorld()”setVirtualWorld(
world):void
Defined in: server/api.d.ts:4371
Moves this entity into another virtual world.
Parameters
Section titled “Parameters”number
Virtual-world identifier used to partition replication and visibility.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”setVisibleTo()
Section titled “setVisibleTo()”setVisibleTo(
player):void
Defined in: server/api.d.ts:4377
Restricts replication of this entity to one owning connection while preserving normal range and visibility checks.
Parameters
Section titled “Parameters”player
Section titled “player”Entity | null
Player-owned entity whose connection should exclusively receive this entity, or null to clear the restriction.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”toString()
Section titled “toString()”toString():
string
Defined in: server/api.d.ts:1598
Returns a readable representation of this blocker.
Returns
Section titled “Returns”string
The blocker ID formatted for logging or debugging.
Inherited from
Section titled “Inherited from”create()
Section titled “create()”
staticcreate(x,y,z,sizeX,sizeY,sizeZ,typeMask?,rotation?,virtualWorld?):Blocker
Defined in: server/api.d.ts:1618
Creates and replicates an invisible collision volume.
Parameters
Section titled “Parameters”number
World-space X coordinate of the volume center.
number
World-space Y coordinate of the volume center.
number
World-space Z coordinate of the volume center.
number
Full local width of the volume.
number
Full local depth of the volume.
number
Full local height of the volume.
typeMask?
Section titled “typeMask?”number
Optional collision mask selecting vehicle and pedestrian blocking.
rotation?
Section titled “rotation?”Optional orientation: a Quaternion, or a Vector3 of Euler angles in degrees.
virtualWorld?
Section titled “virtualWorld?”number
Optional virtual-world ID used for visibility filtering.
Returns
Section titled “Returns”Blocker
The newly created blocker handle.
Properties
Section titled “Properties”blockPeds
Section titled “blockPeds”blockPeds:
boolean
Defined in: server/api.d.ts:1587
Whether the volume blocks pedestrians and players.
blockVehicles
Section titled “blockVehicles”blockVehicles:
boolean
Defined in: server/api.d.ts:1582
Whether the volume blocks vehicles.
enabled
Section titled “enabled”enabled:
boolean
Defined in: server/api.d.ts:1592
Whether collision for this blocker is active.
readonlyid:number
Defined in: server/api.d.ts:4339
Immutable network entity identifier.
Inherited from
Section titled “Inherited from”position
Section titled “position”position:
Vector3
Defined in: server/api.d.ts:4349
Authoritative world-space position; assignment forces replicated state.
Inherited from
Section titled “Inherited from”rotation
Section titled “rotation”rotation:
Vector3|Quaternion
Defined in: server/api.d.ts:4354
Authoritative rotation; reads return a quaternion and assignments accept a quaternion or Euler angles in degrees.
Inherited from
Section titled “Inherited from”
readonlysize:Vector3
Defined in: server/api.d.ts:1577
Full local dimensions of the collision volume.
readonlystate:StateBag
Defined in: server/api.d.ts:4359
Arbitrary key/value state carried by this entity. The server writes it and every client that can see the entity receives it; see StateBag.
Inherited from
Section titled “Inherited from”virtualWorld
Section titled “virtualWorld”
readonlyvirtualWorld:number
Defined in: server/api.d.ts:4344
Current virtual-world identifier.
