Fire
Defined in: server/api.d.ts:2128
Replicated burning volume that damages players and pedestrians standing in it.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Fire(
id):Fire
Defined in: server/api.d.ts:2133
Creates a script wrapper for an existing fire with this ID; use Fire.create() to light one.
Parameters
Section titled “Parameters”number
Network entity identifier.
Returns
Section titled “Returns”Fire
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”destroy()
Section titled “destroy()”destroy():
void
Defined in: server/api.d.ts:2164
Puts this fire out and removes it from every client.
Returns
Section titled “Returns”void
setEnabled()
Section titled “setEnabled()”setEnabled(
enabled):void
Defined in: server/api.d.ts:2188
Sets whether this fire is currently burning.
Parameters
Section titled “Parameters”enabled
Section titled “enabled”boolean
True to burn; false to stop burning without destroying the fire.
Returns
Section titled “Returns”void
setIntensity()
Section titled “setIntensity()”setIntensity(
intensity):void
Defined in: server/api.d.ts:2176
Sets how fiercely this fire burns whoever stands in it.
Parameters
Section titled “Parameters”intensity
Section titled “intensity”number
Percent of a victim’s maximum health burned away per second, from 0 to 100.
Returns
Section titled “Returns”void
setRadius()
Section titled “setRadius()”setRadius(
radius):void
Defined in: server/api.d.ts:2170
Sets how far this fire reaches.
Parameters
Section titled “Parameters”radius
Section titled “radius”number
Burning radius in world units; must be greater than 0 and at most 100.
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”setVisible()
Section titled “setVisible()”setVisible(
visible):void
Defined in: server/api.d.ts:2182
Sets whether this fire is drawn and heard.
Parameters
Section titled “Parameters”visible
Section titled “visible”boolean
True for flames and sound; false for an invisible, silent damage zone.
Returns
Section titled “Returns”void
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:2159
Returns a readable representation of this fire.
Returns
Section titled “Returns”string
The fire’s ID and shape formatted for logging or debugging.
Inherited from
Section titled “Inherited from”create()
Section titled “create()”
staticcreate(x,y,z,radius?,intensity?,virtualWorld?):Fire
Defined in: server/api.d.ts:2200
Lights a fire that burns until it is destroyed.
Parameters
Section titled “Parameters”number
World-space X coordinate of the fire’s centre.
number
World-space Y coordinate of the fire’s centre.
number
World-space Z coordinate of the fire’s centre.
radius?
Section titled “radius?”number
Optional burning radius in world units; defaults to 3.
intensity?
Section titled “intensity?”number
Optional percent of a victim’s maximum health burned away per second; defaults to 8, what a molotov pool burns at.
virtualWorld?
Section titled “virtualWorld?”number
Optional virtual-world ID used for visibility filtering.
Returns
Section titled “Returns”Fire
The newly created fire handle.
extinguishAll()
Section titled “extinguishAll()”
staticextinguishAll():number
Defined in: server/api.d.ts:2206
Puts out every fire in the world.
Returns
Section titled “Returns”number
The number of fires that were put out.
extinguishInRadius()
Section titled “extinguishInRadius()”
staticextinguishInRadius(x,y,z,radius):number
Defined in: server/api.d.ts:2216
Puts out every fire whose centre lies inside the given sphere.
Parameters
Section titled “Parameters”number
World-space X coordinate of the area’s centre.
number
World-space Y coordinate of the area’s centre.
number
World-space Z coordinate of the area’s centre.
radius
Section titled “radius”number
Radius of the area to clear, in world units.
Returns
Section titled “Returns”number
The number of fires that were put out.
Properties
Section titled “Properties”enabled
Section titled “enabled”
readonlyenabled:boolean
Defined in: server/api.d.ts:2153
Whether the fire is currently burning.
readonlyid:number
Defined in: server/api.d.ts:4339
Immutable network entity identifier.
Inherited from
Section titled “Inherited from”intensity
Section titled “intensity”
readonlyintensity:number
Defined in: server/api.d.ts:2143
Percent of a victim’s maximum health burned away per second.
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”radius
Section titled “radius”
readonlyradius:number
Defined in: server/api.d.ts:2138
Burning radius in world units.
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”
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.
Inherited from
Section titled “Inherited from”visible
Section titled “visible”
readonlyvisible:boolean
Defined in: server/api.d.ts:2148
Whether flames and sound are drawn.
