`#description Creates a quick portal (line action 301) between the selected lines. Only works in UDMF. Only works when exactly two lines are selected. Both lines must have exactly the same length. Draws a sector at the back of the selected lines.`;
`#scriptoptions
depth
{
description="Depth of space behind portal";
default=64;
type=0;// Integer
}
texture
{
description="Filler texture";
default="FIREBLU1";
type=6;// Texture
}
`;
// Function to draw the space behind the portal line
functiondrawPortalSector(line,depth)
{
// The origin is the bottom left point of the rectanble
letorigin=line.v1;
// The base points of the rectangle. There are five because
// the first and last point need to be at the same position