Skip to content

getFireRemainingTime

Shared
NEON APIManaged fire

Available in Neon, not standard MTA

Returns how long a managed fire still has to burn, in milliseconds.

Syntax

int|false getFireRemainingTime(fire theFire)

Arguments

theFirefire

Managed fire element.

Returns

The remaining time in milliseconds, or false when the element is not a managed fire.

Ownership and lifecycle

A managed fire is an element owned by the resource that created it, so stopping that resource extinguishes its fires. Server-created fires are synchronized to every client, and lifetime is tracked as relative remaining time so a client joining mid-burn receives what is left.

Important behavior
  • Lifetime is tracked as relative remaining time, so a client joining mid-burn receives what is left rather than a restarted fire.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →