Skip to content

setFireSource

Shared
NEON APIManaged fire

Available in Neon, not standard MTA

Sets which element is held responsible for a managed fire's damage.

Syntax

bool setFireSource(fire theFire, element source)

Arguments

theFirefire

Managed fire element.

sourceelement

Element to blame, or nil to clear it.

Returns

true when applied; false for an invalid element.

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
  • The source is reported as responsibleElement in onClientFireDamage.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →