Jump to content
Sign in to follow this  
Messiah

Vehicle Lights

Recommended Posts

ok... i have a chasis of a vehicle from one of our former working vehicles which now when in game wont show make the brake lights or the tail lights shine at night shine at night.

now... they work in the day perfectly, but dont shine at night. I've set them to shining in the properties and even put the textures in the addon pbo itself, but still no luck...

i've named the selections correctly (otherwise they wouldnt work properly, which they do) its just they wont shine at night no matter what i try...

mad_o.gif

Share this post


Link to post
Share on other sites

Do you have a proper CfgModels section in the config?

Also, I thought I read somewhere that the selection needs to be set to "Always in shadow", although I could be wrong.

Share this post


Link to post
Share on other sites
Do you have a proper CfgModels section in the config?

Also, I thought I read somewhere that the selection needs to be set to "Always in shadow", although I could be wrong.

good point about the cfgmodels... forgot to check that (lol)

as for the shadow... nope, looking at BIS's open source models, they're all set to shining

Share this post


Link to post
Share on other sites
Quote[/b] ]as for the shadow... nope, looking at BIS's open source models, they're all set to shining

Well, I guess I can't argue my point then! tounge_o.gif

The only suggestion I can make then is to add a CfgModels section, besides that, I have no clue.

Share this post


Link to post
Share on other sites

when they are set to shining the lights will show up alot brighter at night when they are on smile_o.gif

whereas always in shadow will do the exact opposit

Wildo

Share this post


Link to post
Share on other sites
Guest RKSL-Rock
ok... i have a chasis of a vehicle from one of our former working vehicles which now when in game wont show make the brake lights or the tail lights shine at night shine at night.

now... they work in the day perfectly, but dont shine at night. I've set them to shining in the properties and even put the textures in the addon pbo itself, but still no luck...

i've named the selections correctly (otherwise they wouldnt work properly, which they do) its just they wont shine at night no matter what i try...

mad_o.gif

Cant remeber here...dont shoot me if i'm wrong. But arent the lights done with hidden selections?

If so they need to use the same class name as the model name afaik.

Share this post


Link to post
Share on other sites

not hidden selections, but selections...

i checked the model thing... and thought it was the problem as my cfg models was very screwed... but after changing and testing its still fooked...

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

class CfgModels

{

class default {};

class Vehicle: default {};

class Car: Vehicle {};

class Jeep: Car {};

class JeepMG: Jeep {};

class UKF_WMIK: JeepMG

{

sectionsInherit="JeepMG";

sections[]={"Number1","Number2","Number3","Number4", "Camo1", "Camo2", "Camo3", "Camo4", "Camo5", "Camo6", "reverse","zadni svetlo","brzdove svetlo"};

};

};

class CfgPatches

{

class UKF_WMIK

{

units[] = {UKF_WMIK};

weapons[] = {};

requiredVersion = 1.91;

requiredAddons[]={"JAM_Magazines"};

};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class Land: AllVehicles {};

class LandVehicle: Land {};

class Car: LandVehicle {};

class Jeep: Car {};

class JeepMG: Jeep {};

class UKF_WMIK: JeepMG

it works ingame in terms of everything besides the damn lights... anything i've missed?

Share this post


Link to post
Share on other sites

What is the name of the p3d model m8 rock.gif

Post the full config than I or someone else might help you wink_o.gif

Oh and in the cfgmodels section

class CfgModels

{

class default {};

class Vehicle: default {};

class Car: Vehicle {};

class UKF_WMIK: Car <----Be sure that you have writed the p3d model name wink_o.gif

Share this post


Link to post
Share on other sites

Try this one

class CfgModels

{

class default {};

class Vehicle: default {};

class Car: Vehicle {};

class UKF_WMIK: Car

{

sectionsInherit="vehicle";

sections[]={"Number1","Number2","Number3","Number4", "Camo1", "Camo2", "Camo3", "Camo4", "Camo5", "Camo6", "reverse","zadni svetlo","brzdove svetlo"};

};

};

class CfgPatches

{

class UKF_WMIK

{

units[] = {UKF_WMIK};

weapons[] = {};

requiredVersion = 1.91;

requiredAddons[]={"JAM_Magazines"};

};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class Land: AllVehicles {};

class LandVehicle: Land {};

class Car: LandVehicle {};

class Jeep: Car {};

class JeepMG: Jeep {};

class UKF_WMIK: JeepMG

Share this post


Link to post
Share on other sites

ok, cheers fella - the p3d name is UKF_WMIK.p3d so i know its not the usual forgetting to use the same names (as the muzzle flash on the weapon works fine, which is normnally the biggest clue) smile_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  

×