Side lights [SOLVED]

Hi everyone, I'm trying to get my side lightbars to work, but I can only get the flares to work. The lights arent lighting up the spots they are pointing at.
I hope that someone can tell me more about it, for example if it is even possible to let headlights work in a 90 degrees angle, you can see the lightbars on the picture (not turned on).0_1516654217931_IMG_0746.JPG

last edited by wrangmog

i know zero about building a mod, but i have also wondered if it was possible to have lights pointing out and down. where i wheel, night riding is big in the summer months and just about everyone uses rock lights that point down and out under the vehicle.

@wrangmog
Copy the <Headlight> section in your XML and adjust the "Dir" field accordingly.
They will only/always come on when your headlights are turned on though...

last edited by Mexican_420

@Mexican_420 thats what i want, but only the flares work at this moment, later this week i'm gonna try to fix it.

Also, could someone explane what the inner and outercone etc. means

@wrangmog
AFAIK inner cone is how wide (in degrees?) the "light beam" is close to the source, and vice versa for outer cone. For example, innercone 30/outercone 120 would give you a light that spans 30° near your light the expands out to a 120° beam at it's limit.
I could be completely wrong on this, but through some experimentation of my own that's my understanding of it.

<HeadLight
	Pos="(-0.914; 1.675; -0.774)"
	Dir="(0.024; -0.255; -0.967)"
	Color="g(255; 255; 255)"
	InnerCone="0"
	OuterCone="100"
	AttenStart="1"
	AttenEnd="40"
/>

above is the xml of one of the lights and under here you see the problem I have.
0_1516714760441_675010_screenshots_20180123142403_1.jpg

@wrangmog
Do you use Notepad++ to edit your XMLs?

@wrangmog, The <HeadLight tag you are using is not the correct section to do this in. That is a Default tag for something, not sure what/how/why.

You want to set the side lights up in the <ModelAttachments> section under <HeadLight>. That is where the actual settings for each light are.

This is the code from the Uaz469;

<HeadLight>
<Model _template="HeadLightRay" Org="(1.865; 1.087; 0.54)" />
<Model _template="HeadLightRay" Org="(1.865; 1.087; -0.54)" />
<Flare _template="HeadLight" Pos="(1.865; 1.087; 0.54)" />
<Flare _template="HeadLight" Pos="(1.865; 1.087; -0.54)" />
<Flare _template="BlueStreak" Pos="(1.865; 1.087; 0.54)" />
<Flare _template="BlueStreak" Pos="(1.865; 1.087; -0.54)" />
</HeadLight>
</ModelAttachments>

You'll want to add your side lights into this section. It should work then.

@Mexican_420 yes I do, with the new plugin

@Tattoo thanks for clearing that out for me, I was always wondering why there are 2 possible ways tot set them up, but now I know.

Also, what does the AttenStart and AttenEnd mean??

@wrangmog said in Side lights:

what does the AttenStart and AttenEnd mean??

Dunno, sorry.

@tattoo said in Side lights:

what does the AttenStart and AttenEnd mean??

attenStart is the inner circle on the lights reflection in the ground and end is the how far it reaches, Keep in mind this value starts from the truck center (0;0;0)

this values are clamped in the editor once you uplaod the mod to the workshop if they're too high

@forces, Yes, I was just thinking about it and thought the same. Thank for clearing that up.

@Forces @Tattoo, thanks for the help, gonna see if Ik could get it to work, I hope it works.
Thanks for the help!!

Yes, the plugin for mudrunner. And I believe that this plugin was updated, because of the tiretrack update, rear view in cockpit view, etc.

@wrangmog
Got a link for it? For the updated plugin? Or did you just install the plugin that comes with the map/truck editor?

last edited by Mexican_420

@Mexican_420 I just reinstalled the plugin that comes with the map/truck editor. It worked for me.

alright, I got it working. But, there is no reflection on the ground, you can only see the light beam.

	<HeadLight
		AttenEnd="40"
		AttenStart="1"
		InnerCone="0"
		OuterCone="100"
	>
		<Flare
			ParentFrame="Cbone"
			Pos="(1.946; 1.069; -0.207)"
			Size="0.4"
			SizeAtDay="0.4"
			Color="g(214; 223; 241) x 1"
			Dir="(1; 0; 0)"
			DirAngle="100"
		/>
		<Model
			ParentFrame="Cbone"
			Org="(1.946; 1.069; -0.207)"
			Size="0.4"
			SizeAtDay="0.4"
			Mesh="env/light_ray"
			Dir="(1; 0; 0)"
		/>

this is an example of how it is setup right now

1_1516754817614_20180124014540_1.jpg 0_1516754817614_20180124014533_1.jpg

the issue in game...