Skip to content

Lua:Map

anotak edited this page Aug 21, 2018 · 4 revisions

Static Methods

GetSectors()

returns all the sectors on the map in a 1-indexed table

GetVertices()

returns all the vertices on the map in a 1-indexed table

GetLinedefs()

returns all the linedefs on the map in a 1-indexed table

GetSidedefs()

returns all the sidedefs on the map in a 1-indexed table

GetThings()

returns all the things on the map in a 1-indexed table

GetSelectedSectors()

returns all the selected sectors on the map in a 1-indexed table

GetSelectedVertices()

returns all the selected vertices on the map in a 1-indexed table

GetSelectedLinedefs()

returns all the selected linedefs on the map in a 1-indexed table note that since sidedefs can't be selected, the way to get the selected ones is through here

GetSelectedThings()

returns all the selected things on the map in a 1-indexed table

GetMarkedSectors()

returns all the marked sectors on the map in a 1-indexed table

GetMarkedVertices()

returns all the marked vertices on the map in a 1-indexed table

GetMarkedLinedefs()

returns all the marked linedefs on the map in a 1-indexed table

GetMarkedThings()

returns all the marked things on the map in a 1-indexed table

JoinSectors(table)

takes a table of sectors and combines into 1 sector, returning that sector

MergeSectors(table)

takes a table of sectors and combines into 1 sector, returning that sector. merge also removes 2sided lines in between the sectors.

StitchGeometry()

NearestSector(pos)

DetermineSector(pos)

NearestSidedef(pos)

NearestLinedef(pos)

NearestLinedefRange(pos, range)

NearestVertex(pos)

NearestThing(pos)

SnapAllToAccuracy()

GetNewTag()

returns a tag number like the "New Tag" button in the Linedef / Sector edit windows

RemoveUnusedVertices()

deletes all vertices with no linedefs

DeselectAll()

DeselectThings()

DeselectGeometry()

deselects vertices, linedefs, and sectors

InsertThing(pos)

InsertThing(x, y)

Clone this wiki locally