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 |
Constructors
No Constructors
This type can not be created directly in scripts.
See:
Functions
Overview
Info
Modification
Flag
Parameters
flagName (string ): The name of the flag to check
Returns
boolean :trueif the given flag is set
Notes
If the parent MapObject.BoolProperty. Otherwise,
blockingtwosideddontpegtopdontpegbottom
VisibleTextures
Determines what textures (parts) of the line are showing.
Returns
table : A table containing the followingboolean values:frontUpperfrontMiddlefrontLowerbackUpperbackMiddlebackLower
Example
local visible = line:VisibleTextures()
-- Check if front upper texture is visible
if visible.frontUpper == true then
-- Check if texture is missing
if line.side1.textureTop == '-' then
App.LogMessage('Line front upper texture is missing')
end
end
Flip
Flips the line so that it faces the opposite direction. If true,
Parameters
[swapSides] (boolean ): Whether to swap the sides. Default istrue