Page MenuHomeFeedback Tracker

Vehicle Light problem (Vanilla + modded)
New, NormalPublic

Description

Hi, there is a small problem with vehicle Lights and the PlayerAnimation Graph.

If you check the Light behaviour, you can Enable the headlights by pressing "L" hotkey. This will play the "CMD_Light" Command on the AnimationGraph.

But: If you use the LightUserActions inside a Vehicle, the Command will not be called and no Animation will play. I already try to fix this, but the "CMD_Light" will still not triggered:

SCR_LightsPresenceUserAction

				VehicleAnimationComponent vehAnimComp = VehicleAnimationComponent.Cast(pOwnerEntity.FindComponent(VehicleAnimationComponent));
				if(vehAnimComp ) {
					
					int ActionId = vehAnimComp.BindCommand("CMD_Light");
					if(ActionId > 0) {
						if(lightsState) {
							vehAnimComp.CallCommand(ActionId , 0, 0);		
						} else {
							vehAnimComp.CallCommand(ActionId , 0, 1);				
						}						
					}	
				}

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
General

Event Timeline

R34P3R created this task.Mon, Feb 24, 1:56 AM
R34P3R updated the task description. (Show Details)