Tile - YTerrain - Apply Shape – Ylands

From Bohemia Interactive Community
Revision as of 15:27, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Apply Shape(Shape, Position, Rotation, Dimensions, Material, Mode, On success, On failure)

YlandsTile-978.png

static applyShape(shape: YTerrainStampShape, position: YVector3, rotation: YVector3, dimensions: YVector3, material: YVoxel, applyMode: YTerrainStampingMode, onSuccess: () => void, onFailure: (failReason: YTerrainStampError) => void): void;

Parameters

shape

position

rotation

dimensions

material

applyMode

onSuccess

onFailure

Availability

Server

Description

Allows to apply or remove terrain of the selected material to/from the selected shape.

Notes

  • Calls further instructions on success or failure.