nanos world API Reference Unofficial documentation
Function Server Moderate

Cable:AttachStartTo

Attaches the beginning of this cable to another Actor at a specific bone or relative location. For optimization, it is recommended attaching start first if you wish to attach both start and end, to avoid double calculations.

Syntax

Lua
my_cable:AttachStartTo(other, relative_location = Vector(0, 0, 0), bone_name = "")

Parameters

Name Type Default Description
other Actor
relative_location optional Vector Vector(0, 0, 0)
bone_name optional string "" Which bone to attach to. If empty it will be attached to the Actor, otherwise to the Mesh at the bone/socket

Returns

  • boolean attached_successfully if it was attached successfully