Tile - YTriggerZoneBase - Color – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "[[Image:{{PAGENAME}}.png]] *Allows to '''get''' / '''set''' '''color''' of selected zone. =Notes= *Supported zones are: Ylands Game logic - Impassable barrier|'''Impassable...")
 
No edit summary
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Image:{{PAGENAME}}.png]]
<!---
*Allows to '''get''' / '''set''' '''color''' of selected zone.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Color ==


=Notes=
[[File:YlandsTile-492-get.png]]
*Supported zones are: [[Ylands Game logic - Impassable barrier|'''Impassable barrier''']], [[Ylands Game logic - Interior|'''Interior''']], [[Ylands Game logic - Play area|'''Play Area''']], [[Ylands Game logic - Trigger zone|'''Trigger Zone''']]
 
[[File:YlandsTile-492-set.png]]
 
<pre>get color(): YColor;
set color(value: YColor);</pre>
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Allows to '''get''' / '''set''' '''color''' of the target '''Trigger Zone'''.
 
=== Notes ===
 
* Get Color will return a '''Color literal'''. If written to console or log, the output will be in the format &quot;[1, 1, 1, 1]&quot;. These represent [Red, Green, Blue, Alpha] and each number can be between 0 (least intensity) and 1 (most intensity). In this case, Alpha represents the transparency of the zone.
* Set Color will overwrite the current zone color and set the new zone color to the color literal or the Custom Color. A Get Color Tile can also be used.




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.12]]

Revision as of 12:16, 12 November 2021

Color

YlandsTile-492-get.png

YlandsTile-492-set.png

get color(): YColor;
set color(value: YColor);

Availability

Server

Description

Allows to get / set color of the target Trigger Zone.

Notes

  • Get Color will return a Color literal. If written to console or log, the output will be in the format "[1, 1, 1, 1]". These represent [Red, Green, Blue, Alpha] and each number can be between 0 (least intensity) and 1 (most intensity). In this case, Alpha represents the transparency of the zone.
  • Set Color will overwrite the current zone color and set the new zone color to the color literal or the Custom Color. A Get Color Tile can also be used.