Skip to content
FMFallout Multiplayer Scripting APIScripting guides and API
Runtime classServer APIGenerated

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.

new Mine(id): Mine

Defined in: server/api.d.ts:2146

Wraps an armed mine with this ID; it lays nothing.

number

Network entity identifier.

Mine

Entity.constructor

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.

boolean

True when sent; false when it is gone or already going off.


getOwner(): Player | null

Defined in: server/api.d.ts:2180

The player who laid it.

Player | null

The owner, or null once the mine or its owner is gone.


remove(): boolean

Defined in: server/api.d.ts:2168

Takes the mine out of the world without a blast.

boolean

True when it was armed.


setVirtualWorld(world): void

Defined in: server/api.d.ts:4292

Moves this entity into another virtual world.

number

Virtual-world identifier used to partition replication and visibility.

void

Entity.setVirtualWorld


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.

Entity | null

Player-owned entity whose connection should exclusively receive this entity, or null to clear the restriction.

void

Entity.setVisibleTo


toString(): string

Defined in: server/api.d.ts:2174

Formats this handle for logging.

string

The mine’s network ID, owner and radius.

Entity.toString


static all(): Mine[]

Defined in: server/api.d.ts:2186

Every armed mine.

Mine[]

One handle per mine.

readonly explosion: number

Defined in: server/api.d.ts:2156

The BGSExplosion form ID it sets off; 0 once it is gone.


readonly id: number

Defined in: server/api.d.ts:4260

Immutable network entity identifier.

Entity.id


position: Vector3

Defined in: server/api.d.ts:4270

Authoritative world-space position; assignment forces replicated state.

Entity.position


readonly radius: 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: 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.

Entity.rotation


readonly state: 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.

Entity.state


readonly virtualWorld: number

Defined in: server/api.d.ts:4265

Current virtual-world identifier.

Entity.virtualWorld