MapLine
Represents a map linedef.
Inherits MapObject
All properties and functions of
Properties
| Property | Type | Description |
|---|---|---|
| The X coordinate of the line's first vertex | ||
| The Y coordinate of the line's first vertex | ||
| The X coordinate of the line's second vertex | ||
| The Y coordinate of the line's second vertex | ||
| The line's first vertex | ||
| The line's second vertex | ||
| The line's first (front) side | ||
| The line's second (back) side | ||
| The line's action special | ||
| The length of the line in map units | ||
| The textures of the line that are visible. The frontUpper, frontMiddle, frontLower, backUpper, backMiddle, backLower. |
Constructors
No Constructors
This type can not be created directly in scripts.
Functions
flag
string flag_name : The name of the flag to check
Returns
Returns true if the given flag is set.
If the parent MapObject:boolProperty. Otherwise,
blockingtwosideddontpegtopdontpegbottom
flip
[boolean swap_sides :true]: Whether to swap the sides
Flips the line so that it faces the opposite direction. If true, the line's
Examples
The visibleTextures Property
The
-- Check if front upper texture is visible if line.visibleTextures.frontUpper == true then -- Check if texture is missing if line.side1.textureTop == '-' then App.logMessage('Line front upper texture is missing') end end
Tip
The