Skip to content

setRopeHolder

Shared

Sets the element a rope hangs from.

Syntax

bool setRopeHolder(rope theRope, element holder)

Arguments

theRoperope

Managed rope element.

holderelement

Physical element the rope attaches to.

Returns

true when applied; false for an invalid rope or holder.

Ownership and lifecycle

A rope belongs to the resource that created it. GTA has eight native rope slots, so Neon leases them to the logical ropes that need one; a rope without a lease still exists but is not natively simulated at that moment. Every native type except swat requires a valid physical holder.

Important behavior
  • Required for every native type except swat. Moving the holder is what makes a wrecking ball swing.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →