Skip to content

setObjectBreakHealth

Client-side

Available in Neon, not standard MTA

Sets an armed object's remaining durability.

Syntax

bool setObjectBreakHealth(object theObject, float health)

Arguments

theObjectobject

Streamed object element.

healthfloat

New remaining health.

Returns

true when applied; false for an invalid object or value.

Ownership and lifecycle

A break effect belongs to the resource that created it and is removed when that resource stops. Fragment geometry is cached per model, so repeated fractures of the same model reuse the first computed cut until the cache is cleared.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →