Moving light glow around unit

Information and discussion for custom maps and mods.
Post Reply
sperepex
Posts: 2
Joined: Thu Mar 12, 2026 1:11 pm

Moving light glow around unit

Post 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?
sperepex
Posts: 2
Joined: Thu Mar 12, 2026 1:11 pm

Re: Moving light glow around unit

Post by sperepex »

Found in code: TerrainLightSource, supports only: INotifyAddedToWorld, INotifyRemovedFromWorld.
Need to add interface INotifyCenterPositionChanged with cell update.


Tomorrow I`ll think about it.
Post Reply