Tile - YTerrain - Apply Shape – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(One intermediate revision by one other user not shown)
Line 24: Line 24:


==== onFailure ====
==== onFailure ====
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===
Line 36: Line 40:
----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 14:27, 24 November 2023

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.