SpikeStrip
Defined in: server/api.d.ts:1869
Replicated tyre spike strip that can be enabled or disabled by the server.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SpikeStrip(
id):SpikeStrip
Defined in: server/api.d.ts:1874
Creates a script wrapper for an existing spike strip with this ID; use SpikeStrip.create() to create one.
Parameters
Section titled “Parameters”number
Network entity identifier.
Returns
Section titled “Returns”SpikeStrip
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”destroy()
Section titled “destroy()”destroy():
void
Defined in: server/api.d.ts:1900
Destroys this replicated spike strip.
Returns
Section titled “Returns”void
setEnabled()
Section titled “setEnabled()”setEnabled(
enabled):void
Defined in: server/api.d.ts:1906
Sets whether this spike strip is active.
Parameters
Section titled “Parameters”enabled
Section titled “enabled”boolean
True to activate tyre puncturing; false to disable it.
Returns
Section titled “Returns”void
setVirtualWorld()
Section titled “setVirtualWorld()”setVirtualWorld(
world):void
Defined in: server/api.d.ts:4154
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:4160
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:1895
Returns a readable representation of this spike strip.
Returns
Section titled “Returns”string
The spike-strip ID formatted for logging or debugging.
Inherited from
Section titled “Inherited from”create()
Section titled “create()”
staticcreate(x,y,z,length?,heading?,virtualWorld?):SpikeStrip
Defined in: server/api.d.ts:1918
Creates and replicates an enabled tyre spike strip.
Parameters
Section titled “Parameters”number
Initial world-space X coordinate.
number
Initial world-space Y coordinate.
number
Initial world-space Z coordinate.
length?
Section titled “length?”number
Optional physical strip length in world units.
heading?
Section titled “heading?”number
Optional world-space heading angle.
virtualWorld?
Section titled “virtualWorld?”number
Optional virtual-world ID used for visibility filtering.
Returns
Section titled “Returns”SpikeStrip
The newly created spike-strip handle.
Properties
Section titled “Properties”enabled
Section titled “enabled”
readonlyenabled:boolean
Defined in: server/api.d.ts:1889
Whether tyre puncturing is active.
heading
Section titled “heading”
readonlyheading:number
Defined in: server/api.d.ts:1884
World-space heading angle.
readonlyid:number
Defined in: server/api.d.ts:4122
Immutable network entity identifier.
Inherited from
Section titled “Inherited from”length
Section titled “length”
readonlylength:number
Defined in: server/api.d.ts:1879
Physical strip length in world units.
position
Section titled “position”position:
Vector3
Defined in: server/api.d.ts:4132
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:4137
Authoritative rotation; reads return a quaternion and assignments accept a quaternion or Euler angles in degrees.
Inherited from
Section titled “Inherited from”
readonlystate:StateBag
Defined in: server/api.d.ts:4142
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:4127
Current virtual-world identifier.
