lights (solved)
Moderator: Moderators
- elfie
- Field Commander

- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
lights (solved)
I am attaching a light odf to hardpoints on a model I made, but ingame it does not appear as individual lights at each hardpoint, it just is generally illuminated. How would I change the light odf so that it applies an individual light at each hardpoint, and make the light flicker on and off?
Last edited by elfie on Fri Aug 01, 2008 11:54 am, edited 1 time in total.
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: lights
Search the shipped modtools documentation for one called AttachedEffects it explains all about attaching lights via odfs as well. If you can't locate it let me know in this topic.
- elfie
- Field Commander

- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
Re: lights
Alright, I didn't find a tutorial called "attachedeffects", but I did find one called BF2_lighting. I read it, and the attached lights section with the example light odfs were nothing like my light odf.
is stated in almost every example, but not in my light file which I got from the shipped dagobah odf folder, I also edited it a little. Plus I changed the color to red in the color section, but it still appears a light yellow or white, but no red at all. Here is my odf if you want to look at it:
And here is my model odf where I attatch the lights through hardpoints:
Code: Select all
ConeLength = 1.0
ConeWidth = 5.0
ConeInitialWidth = 1.0Code: Select all
[GameObjectClass]
ClassLabel = "Light"
[Properties]
Color = "255 10 10"
FlareIntensity = 1.0
FlickerType = 1
FlickerPeriod = 1.0
OmniRadius = 0.75
static = 1Code: Select all
[GameObjectClass]
ClassLabel = "prop"
GeometryName = "platform.msh"
[Properties]
GeometryName = "platform"
AttachOdf = "light99"
AttachToHardPoint = "hp_light1"
AttachOdf = "light99"
AttachToHardPoint = "hp_light2"
AttachOdf = "light99"
AttachToHardPoint = "hp_light3"
AttachOdf = "light99"
AttachToHardPoint = "hp_light4"
AttachOdf = "light99"
AttachToHardPoint = "hp_light5"
AttachOdf = "light99"
AttachToHardPoint = "hp_light6"
FoleyFXGroup = "wood_foley"-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: lights
I am not in front of my home computer right now but those look okay.
Are they at least attaching to the hardpoints now?
Just snuck a look at my laptop at work which has modtools on it (shh don't tell anyone)
Have a look at Tantive there is one call flicker_white_light.
They show it having a name in the Properites section
Name = "white_light_flicker" which is weird cause it is different from the odf name but... then the one right below it for barracks doesn't
point being is try copying one or the other to your map and see if they work.
Are they at least attaching to the hardpoints now?
Just snuck a look at my laptop at work which has modtools on it (shh don't tell anyone)
Have a look at Tantive there is one call flicker_white_light.
They show it having a name in the Properites section
Name = "white_light_flicker" which is weird cause it is different from the odf name but... then the one right below it for barracks doesn't
point being is try copying one or the other to your map and see if they work.
- elfie
- Field Commander

- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
Re: lights
Wait, hold on got it working.
Thanks for directing me to that tutorial fragme it helped! Lock please 
