Skip to content

Prop

The prop class represents a prop loaded in the current map.

See also: Maps.Props.

Type: "Prop"

Always set to “Prop”. Used to differentiate between classes.

Type: MapObject

The MapObject of the prop.

Type: Extras

Additional data for the specific prop instance.

Type: InteractableDefinition?

Defines the interactability of this prop.

Type: string?

Text to display to players looking at this prop. This should be set on the client-side from the attached interactable.

Type: Round

A reference to the current round.

Returns the current health of the prop. Returns nil if the prop is not breakable.

number?

Sets the health of the prop. No effect if the prop is not breakable.

NameTypeDefaultDescription
healthnumberThe new health of the prop.

Attempts to damage the prop with the provided DamageParams. Returns true if the prop was damaged, false otherwise.

NameTypeDefaultDescription
damageParamsDamageParamsThe damage parameters.
deferDeathboolean?Whether to defer OnBreak.

boolean