Jump to content
Sign in to follow this  
mystic

Problem with vehicle headlight

Recommended Posts

hi there i got a problem here

My vehicle headlight is not position properly. instead it is coming from inside the vehicle and there is only one light shining thru. may i know wat is the problem?

Share this post


Link to post
Share on other sites

Check your memory in the .p3d file you are working on,

L svetlo Left light

P svetlo Right light

svetla light

svetle light

svetlo light

svetloPL light_Front_Left

svetloPP light_Front_Right

svetly light

zadni svetlo rear light

konec L svetla end (of) Left light

konec P svetla end (of) Right light

konec svetla L end (of) light Left

konec svetla P end (of) light Right

konec svetla PL end (of) light Front_Left

konec svetla PP end (of) light Front_Right

Share this post


Link to post
Share on other sites

my memory part do have

konec svetla PL

konec svetla PP

pilot

pos cargo

pos driver

stopa PLL

stopa PLP

stopa PPL

stopa PPP

stopa ZLL

stopa ZLP

stopa ZPL

stopa ZPP

svetlo PL

svetlo PP

svetlo ZL

svetlo ZP

vyfuk konec

vyfuk start

zamerny

but do not have or not the same variable for

L svetlo Left light

P svetlo Right light

svetloPL light_Front_Left

svetloPP light_Front_Right

zadni svetlo rear light

svetla light

svetle light

svetlo light

svetly light

konec L svetla end (of) Left light

konec P svetla end (of) Right light

konec svetla L end (of) light Left

konec svetla P end (of) light Right

konec svetla PL end (of) light Front_Left

konec svetla PP end (of) light Front_Right

so which one do i have to follow?

Share this post


Link to post
Share on other sites

Ok here it is,

konec svetla PL =Start of Light Left side

L svetlo =End Left ligt

konec svetla PP =Start oF Light Right Light

P svetlo =End of Right Light

Just rename svetlo PL to L svetlo and

svetlo PP to P svetlo and that should fix your problem.

Opps,I thought I was editing my last post.

Share this post


Link to post
Share on other sites

the brake light and the headlight texture is on even though i switch off the engine or off the light. how do i solve that??

sorry to ask so much qns. i feel that the demo vehicles I took are all old ones. is there an updated p3d models anyway???

Share this post


Link to post
Share on other sites

In the .p3d select what ever you want to come on when you select lights on in game except the brake light which should be named "brzdove svetlo" and make a new selection named "zadni svetlo".

Share this post


Link to post
Share on other sites

hmm it still doesnt works....

u mean in the memory or LOD?

i place it in the LOD only...

Share this post


Link to post
Share on other sites

jus to confirm.

brzdove svelto is the brake light on the back

and zadni svetlo is the lights in front and the back. am i correct?

and it cant work...

Share this post


Link to post
Share on other sites

Yes,you need to mess with the LODS not the memory.And dont forget to add the

Quote[/b] ]class CfgModels

{

class default {};

class Vehicle: default {};

class Car: Vehicle {};

class VEH: car {};

};

In your config.cpp, Where it reads "VEH" is where you put the name of the "MODEL" of you .p3d.

Share this post


Link to post
Share on other sites

still cant get to work.

here is my cfgmodels.

class CfgModels

{

class default

{

sectionsInherit="";

sections[]={};

};

class Vehicle: default {};

class Car : Vehicle {};

class landrover : Car

{

sections[]={"zadni svetlo","brzdove svetlo"};

};

};

Share this post


Link to post
Share on other sites

This is my whole config for my test vehicle.Use it if it helps.

Quote[/b] ]// some basic defines

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define true 1

#define false 0

// type scope

#define private 0

#define protected 1

#define public 2

class CfgModels

{

class default {};

class Vehicle: default {};

class Car: Vehicle {};

class VEH: car {};

       sectionsInherit="Vehicle";

       sections[]={"n1","n2","n3"};

};

class CfgPatches

{

class TesTVehicle

{

units[] = {TesTVehicle};

weapons[] = {};

requiredVersion = 1.91;

};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class Land: AllVehicles {};

class LandVehicle: Land {};

class Car: LandVehicle {};

class Jeep : Car {};

class TesTVehicle: Jeep

{

displayName= "Test Vehicle";

               vehicleClass="TEST - Vehicle";

model="\TVehicle\Veh.p3d";

picture=\humr\ihmmwv.paa;

armor = 80;

type=VArmor;

cost=100000;

               hiddenSelections[] = {"N1","N2","N3"};

};

Share this post


Link to post
Share on other sites

I've only added a light to one addon and its just one light with no bulb texture or what have you but I did this to use half of the headlight system (left side)

2 points in "memory lod" each named:

konec L svetla

L svetlo

And just the following in the "class cfgvehicles" section of the config.cpp:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class Reflectors

{

class Left

{

color[] = {0.9, 0.8, 0.8, 1.0};

ambient[] = {0.1, 0.1, 0.1, 1.0};

position = "L svetlo";

direction = "konec L svetla";

hitpoint = "L svetlo";

selection = "L svetlo";

size = 0.5;

brightness = 1;

};

               };

That will give you one headlight that doesnt have a texture and can't be destroyed and goes on/off correctly

The methods NZSSHADOWS described in great detail  and manipulation of the hitpoints I believe will finish the job and give you the destroyable headlight features

Share this post


Link to post
Share on other sites

well ya wat i mention is that the headlight is working. but now my brake light and headlight texture is not working. the texture is just there even if i get out of the vehicle or stop the car. sad_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×