Skip to content

setRopeFixedNode

Shared

Pins one node of the rope.

Syntax

bool setRopeFixedNode(rope theRope, int node)

Arguments

theRoperope

Managed rope element.

nodeint

Node index from 0 through 30.

Returns

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

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
  • A rope holds at most 32 nodes, which is where the 0 to 30 range comes from.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →