How to use building:getAnimationColor()?

Plugin specific problems will be solved here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
dnswodn
Inhabitant of a Megacity
Posts: 251
Joined: 08 Feb 2022, 08:14
Location: 🏞️ Theonia 🌁
Plugins: Showcase Store

Plugin Creator

Platform

How to use building:getAnimationColor()?

#1

Post by dnswodn »

Hello. I am currently puzzled about the correct usage of function building:getAnimationColor()
I have tried to use it in this way:

Code: Select all

local building = Tile.getBuilding(x, y)
local colorR, colorG, colorB, colorA = building:getAnimationColor()
Here colorR can get the correct value but the others get nil, so could anyone please teach me the correct way to use it? Thanks.

Return to “Problems”