mystic 0 Posted October 4, 2003 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
NZXSHADOWS 0 Posted October 5, 2003 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
mystic 0 Posted October 6, 2003 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
NZXSHADOWS 0 Posted October 7, 2003 Bad post let me check something. Share this post Link to post Share on other sites
NZXSHADOWS 0 Posted October 7, 2003 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
mystic 0 Posted October 8, 2003 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
NZXSHADOWS 0 Posted October 8, 2003 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
mystic 0 Posted October 8, 2003 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
mystic 0 Posted October 8, 2003 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
NZXSHADOWS 0 Posted October 8, 2003 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
mystic 0 Posted October 9, 2003 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
NZXSHADOWS 0 Posted October 9, 2003 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
BraTTy 0 Posted October 9, 2003 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
mystic 0 Posted October 9, 2003 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. Share this post Link to post Share on other sites