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: 252
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.

User avatar
JustAnyone
Developer
Posts: 3587
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: How to use building:getAnimationColor()?

#2

Post by JustAnyone »

Try Tile.getBuildingAnimationColor and report back if the return value is the same

Post Reply Previous topicNext topic

Return to “Problems”