Tile - YTriggerZoneBase - Color – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (YlandsClassyBot moved page Ylands Tile - Get-Set zone color to Ylands:Tile - YTriggerZoneBase - Color: New Structure)
No edit summary
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.
**Get Color will return a [[Ylands Tile - Color literal|'''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 [[Ylands Tile - Color new|Custom Color]]. A [[Ylands_Tile_-_Entity_colors|Get Color Tile]] can also be used.
== Color ==


=Notes=
[[File:YlandsTile-492-get.png]]
*Supported zones are: [[Ylands Game logic - Impassable barrier|'''Impassable barrier''']], [[Ylands Game logic - Environment|'''Environment''']], [[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>
=== 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.




Line 13: Line 25:


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

Revision as of 09:52, 8 July 2021

Color

YlandsTile-492-get.png

YlandsTile-492-set.png

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

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.