Tile - YTriggerZoneBase - Color – 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}}}}")
 
Line 26: Line 26:
----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


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

Latest revision as of 15:35, 24 November 2023

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.