Skip to content

Lua:Sidedef

anotak edited this page Jun 29, 2018 · 6 revisions

see the doomwiki article on Sidedef

Properties

offsetx

offsety

uppertex

the name of the upper texture. the empty/blank texture is "-". see also Data

midtex

the name of the middle texture. the empty/blank texture is "-". see also Data

lowertex

the name of the lower texture. the empty/blank texture is "-". see also Data

Methods

GetIndex()

gets the editor index of the map element.

note: the value returned will be 0-indexed, like the map format, whereas the tables in Lua start at 1.

note 2: this number can change any time you add or remove map elements. sometimes elements are added at the beginning or middle instead of the end. the manner in which it changes is unpredictable and subject to change between doom builder versions.

IsDisposed()

GetUDMFField(key)

SetUDMFField(key,value)

IsFront()

returns true if this is the front of the line, false if not

GetAngle()

gets the angle of the line

GetOther()

gets the sidedef at the other side of the line, or returns nil if it doesn't exist

GetSector()

gets the sector associated with this sidedef

GetLinedef()

gets the linedef that owns this sidedef

Clone this wiki locally