fires.listAll
Lists the fires burning now that every player sees. Read it when your gamemode loads: the fires already burning do not
send sharedFireStarted again.
Renamed in 0.28 from fires.all; see renamed names.
Signature
Section titled “Signature”fires.listAll(): readonly SharedFire[]Parameters
Section titled “Parameters”None.
Returns
Section titled “Returns”An array of SharedFire, in no particular order; empty when nothing burns. It is a copy:
it does not change as fires start and go out.
Example
Section titled “Example”import { fires, server } from "nativemp";
for (const fire of fires.listAll()) { server.log(`Fire ${fire.id} in interior ${fire.interior}, strength ${fire.strength}`);}Related
Section titled “Related”fires.getById: one firefires.extinguish: put a fire outsharedFireStarted: a fire started