Skip to content

setFireTarget

Shared
NEON APIManaged fire

Available in Neon, not standard MTA

Attaches a managed fire to an element so it follows wherever that element goes.

Syntax

bool setFireTarget(fire theFire, element target)

Arguments

theFirefire

Managed fire element.

targetelement

Element to follow, or nil to leave the fire where it is.

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
  • This is what separates a managed fire from a native one: the same fire keeps its identity and can be retargeted while burning, instead of being extinguished and recreated.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →