Builtin Library
README.md
sc.spawnLine (deprecated)
Deprecated — superseded by the
entityOps/scene/appearancetoolboxes. Spawn each entity via the entity API (entity.spawn+component.add("Model", …)) and place it along the line yourself.
Places a run of entities in a straight line along any direction, each one a spawned model. The count sets how many, spacing sets the gap between them, and a direction vector (defaulting to along +X, and normalized for you) aims the row — set it upward for a column, or diagonally for a slope. Each entity takes the shared name with an index appended. Returns the array of generated entity ids, ready to feed into a batch operation. Reach for it for walls, fences, and rows of props.