Tile - YTerrain - Apply Shape – Ylands
Jump to navigation
Jump to search
m (YlandsClassyBot moved page Ylands Tile - Terrain - apply shape to Ylands:Tile - YTerrain - Apply Shape: New Structure) |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}") |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<!--- | |||
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. | |||
--> | |||
== Apply Shape(Shape, Position, Rotation, Dimensions, Material, Mode, On success, On failure) == | |||
[[File:YlandsTile-978.png]] | |||
<pre>static applyShape(shape: YTerrainStampShape, position: YVector3, rotation: YVector3, dimensions: YVector3, material: YVoxel, applyMode: YTerrainStampingMode, onSuccess: () => void, onFailure: (failReason: YTerrainStampError) => void): void;</pre> | |||
=== Parameters === | |||
==== shape ==== | |||
==== position ==== | |||
==== rotation ==== | |||
==== dimensions ==== | |||
==== material ==== | |||
==== applyMode ==== | |||
==== onSuccess ==== | |||
==== onFailure ==== | |||
=== Availability === | |||
[[Ylands:Tile Availability - Server|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'''. | |||
---- | ---- | ||
{{Navbox/Ylands}} | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}| | {{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)
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
Description
Allows to apply or remove terrain of the selected material to/from the selected shape.
Notes
- Calls further instructions on success or failure.