Tick is not called on actor extending Light?

Discussions about Coding and Scripting
Post Reply
User avatar
PrinceOfFunky
Godlike
Posts: 1200
Joined: Mon Aug 31, 2015 10:31 pm

Tick is not called on actor extending Light?

Post by PrinceOfFunky »

I'm trying to log the LightHue of an actor extending Light at every Tick, but it won't work :/ I tried enabled Tick in PostBeginPlay but still nothing.
Is Tick() disabled after PostBeginPlay on a Light?
"Your stuff is known to be buggy and unfinished/not properly tested"
nogardilaref
Masterful
Posts: 577
Joined: Tue Jun 20, 2017 1:00 pm
Personal rank: ⚋⚊⚌☰⚞⌖⚟☰⚌⚊⚋

Re: Tick is not called on actor extending Light?

Post by nogardilaref »

It's not because it's a Light specially, it's because Tick is disabled in bStatic=True actors, and it happens that Light is bStatic=True by default.
So, in your own actor, all you have to do is to set bStatic=False in the default properties. :)
User avatar
PrinceOfFunky
Godlike
Posts: 1200
Joined: Mon Aug 31, 2015 10:31 pm

Re: Tick is not called on actor extending Light?

Post by PrinceOfFunky »

nogardilaref wrote:It's not because it's a Light specially, it's because Tick is disabled in bStatic=True actors, and it happens that Light is bStatic=True by default.
So, in your own actor, all you have to do is to set bStatic=False in the default properties. :)
Oh thanks I didn't know it.

So LightHue doesn't change if using LT_TexturePalette? Does it mean the texture is projected like on decals, just one pixel at a time? Sad lol, I thought I could get pixel values of a texture.
EDIT: But I see Palette contains an array of pixels(Colors):

Code: Select all

var native const array<Color> Colors;
And Texture contains a Palette variable /o\.
EDIT 2: Oh damnn, it's a dynamic array, saddd :<
"Your stuff is known to be buggy and unfinished/not properly tested"
Post Reply