nanos world API Reference Unofficial documentation
Constructor Shared

Cable.Default Constructor

Syntax

Lua
Cable(location, enable_visuals = true, spawn_mode = SpawnMode.Immediate)

Parameters

Name Type Default Description
location Vector
enable_visuals optional boolean true Toggles the cable visuals
spawn_mode optional SpawnMode SpawnMode.Immediate Pass <code>SpawnMode.AfterConstructor</code> or <code>SpawnMode.Manual</code> to avoid immediately sending the entity to clients and improve performance when you want to configure it by setting several configs. Must call <code>FinishSpawn()</code> after all