sharedFireUpdated
Tells your gamemode that a fire’s strength, position or remaining burn time changed. Many small changes in a short time arrive as one.
Renamed in 0.28 from fireUpdated; see renamed names.
Signature
Section titled “Signature”server.on("sharedFireUpdated", ({ fire, reason }) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
fire |
SharedFire |
The fire as it is now. |
reason |
"update" |
Always "update". |
Example
Section titled “Example”import { server } from "nativemp";
server.on("sharedFireUpdated", ({ fire }) => { if (fire.strength < 0.2) server.log(`Fire ${fire.id} is almost out`);});Related
Section titled “Related”sharedFireStartedandsharedFireStopped: the fire started or went outSharedFire: the fire’s fields