Page 1 of 1

Moving light glow around unit

Posted: Thu Mar 12, 2026 7:23 pm
by sperepex
Hi,
Is it possible to make a spotlight follow a moving unit?
I tried to use TerrainLightSource with soldier, but light spot is not moving, it only appears on unit spawn.

Is there any workarouds in yaml to make it possible?

Re: Moving light glow around unit

Posted: Thu Mar 12, 2026 9:27 pm
by sperepex
Found in code: TerrainLightSource, supports only: INotifyAddedToWorld, INotifyRemovedFromWorld.
Need to add interface INotifyCenterPositionChanged with cell update.


Tomorrow I`ll think about it.