Tile - YEntity - Set 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 51: Line 51:
----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


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

Latest revision as of 15:26, 24 November 2023

Set Color(Entity, Color)

YlandsTile-1129.png

setColor(color: YColor): void;

Parameters

color

New color

Availability

Server

Description

Allows to apply one color on to all color channels of target object, without paint splash effect.

Set Color(Entity, Color id, Color)

YlandsTile-1006.png

setColor(colorId: number, color: YColor): void;

Parameters

colorId

Target entity color channel ID

color

Target color.

Availability

Server

Description

Allows to set color of selected color channel of target entity.

Notes

  • Alpha of the color governs the emissivity of the material.