Page MenuHomeFeedback Tracker

ELights do not respect side value when turning on/off
Assigned, NormalPublic

Description

When using scripting to turn on/off lights on a vehicle with light types, designating a side on lights is not functional except for ELight Type Hazard. See reproducibility for example code. Light action is configured via vehicle prefab's Light Manager Component. Lights are configured correctly by corresponding side. Only lights with type Hazard are respected by side.

Details

Severity
Trivial
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Operating System Version
N/A
Category
General
Steps To Reproduce

The following works:

int leftSide = 0;
int rightSide =1;
BaseLightManagerComponent lightManager = BaseLightManagerComponent.Cast(pOwnerEntity.FindComponent(BaseLightManagerComponent));
	if (lightManager)
	{
		lightManager.SetLightsState(ELightType.Hazard, false, leftSide);
		lightManager.SetLightsState(ELightType.Hazard, true, rightSide);
	}

The following will turn on both lights:

...
lightManager.SetLightsState(ELightType.Head, false, leftSide);
lightManager.SetLightsState(ELightType.Head, true, rightSide);
...

The following will turn off both lights:

...
lightManager.SetLightsState(ELightType.Head, true, leftSide);
lightManager.SetLightsState(ELightType.Head, false, rightSide);
...

Further, testing with additional sides (2, 3, etc) did not work.

Additional Information

Suspect that the engine is only processing sides for hazard light type. Another feature request was submitted to increase the number of potential light type enums, unifying the handler for light sides would alleviate the need for that feature request.

Event Timeline

Geez changed the task status from New to Assigned.Sep 23 2024, 4:21 PM
banla added a subscriber: banla.EditedOct 9 2024, 10:05 AM

@geometry dash subzero,

Any updates on the processing for light faces?