TerrainPathLine

Package: Libraries.Interface.Controls.Scenes.Items · Inherits from: Libraries.Interface.Item3D, Libraries.Interface.Item, Libraries.Language.Object, Libraries.Game.Graphics.Model

The TerrainPathLine is the scene editor's line for a river's path: a thin strip over the ground from point to point, following the hills, with a small square at each point. The point being moved or just added has a larger square. While a river is drawn, the last stretch reaches to where the mouse is, to show where the next click would add a point. It is an editor helper, not a scene item, and lets clicks through.

Example Code

use Libraries.Interface.Controls.Scenes.Items.TerrainPathLine
use Libraries.Game.Graphics.Worlds.TerrainData
use Libraries.Containers.Array

TerrainData data
Array<number> xs
Array<number> zs
xs:Add(0)
zs:Add(0)
xs:Add(10)
zs:Add(5)
TerrainPathLine line
line:Place(data, xs, zs, 1)

Actions

Forget()

This action makes the line again the next time it is placed, such as after the ground under it changed.

Place(Libraries.Game.Graphics.Worlds.TerrainData data, Libraries.Containers.Array<number> pointsX, Libraries.Containers.Array<number> pointsZ, integer chosen)

This action lays the line over the ground through points, with a square at each.

Parameters

Inherited Actions

112 actions from Libraries.Game.Graphics.Model
62 actions from Libraries.Interface.Item
211 actions from Libraries.Interface.Item3D
3 actions from Libraries.Language.Object