sharedFireStopped
Tells your gamemode that a fire went out. fires.getById(fire.id) already returns
undefined, and fire.remainingBurnMs is 0.
Renamed in 0.28 from fireStopped; see renamed names.
Signature
Section titled “Signature”server.on("sharedFireStopped", ({ fire, reason }) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
fire |
SharedFire |
The fire as it was last. |
reason |
SharedFireStopReason |
Why it went out. |
Example
Section titled “Example”import { server } from "nativemp";
server.on("sharedFireStopped", ({ fire, reason }) => server.log(`Fire ${fire.id} out: ${reason}`));Related
Section titled “Related”sharedFireStarted: a fire startedfires.extinguish: put a fire outSharedFireStopReason: the reasons