Mine
Defined in: server/api.d.ts:2141
An armed mine a player laid. Its owner’s game holds the mine and sets it off; the server decides when. Once it goes off or is removed the handle reads nothing. Mines go with their owner when they leave.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Mine(
id):Mine
Defined in: server/api.d.ts:2146
Wraps an armed mine with this ID; it lays nothing.
Parameters
Section titled “Parameters”number
Network entity identifier.
Returns
Section titled “Returns”Mine
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”detonate()
Section titled “detonate()”detonate():
boolean
Defined in: server/api.d.ts:2162
Has the owner’s game set the mine off where it lies, as if a player walked onto it. The blast is the owner’s: playerExplosion and playerHit follow.
Returns
Section titled “Returns”boolean
True when sent; false when it is gone or already going off.
getOwner()
Section titled “getOwner()”getOwner():
Player|null
Defined in: server/api.d.ts:2180
The player who laid it.
Returns
Section titled “Returns”Player | null
The owner, or null once the mine or its owner is gone.
remove()
Section titled “remove()”remove():
boolean
Defined in: server/api.d.ts:2168
Takes the mine out of the world without a blast.
Returns
Section titled “Returns”boolean
True when it was armed.
setVirtualWorld()
Section titled “setVirtualWorld()”setVirtualWorld(
world):void
Defined in: server/api.d.ts:4292
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:4298
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:2174
Formats this handle for logging.
Returns
Section titled “Returns”string
The mine’s network ID, owner and radius.
Inherited from
Section titled “Inherited from”
staticall():Mine[]
Defined in: server/api.d.ts:2186
Every armed mine.
Returns
Section titled “Returns”Mine[]
One handle per mine.
Properties
Section titled “Properties”explosion
Section titled “explosion”
readonlyexplosion:number
Defined in: server/api.d.ts:2156
The BGSExplosion form ID it sets off; 0 once it is gone.
readonlyid:number
Defined in: server/api.d.ts:4260
Immutable network entity identifier.
Inherited from
Section titled “Inherited from”position
Section titled “position”position:
Vector3
Defined in: server/api.d.ts:4270
Authoritative world-space position; assignment forces replicated state.
Inherited from
Section titled “Inherited from”radius
Section titled “radius”
readonlyradius:number
Defined in: server/api.d.ts:2151
How close a player must come to set it off, in game units; 0 once it is gone.
rotation
Section titled “rotation”rotation:
Vector3|Quaternion
Defined in: server/api.d.ts:4275
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:4280
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:4265
Current virtual-world identifier.