
Lights Off

Lights On
Modifié par henesua, 27 janvier 2013 - 07:42 .
Modifié par NWN_baba yaga, 11 mai 2013 - 12:04 .
Modifié par Lord Sullivan, 13 mai 2013 - 07:14 .
Digging up this old thread. I don’t think the question of how to remove flare from tileset lights without killing spell flares was ever answered. The fx_flame01 fix does remove the tileset light flare, but unfortunately removes spell flares as well. Is there a fix for this? Even if I have to edit each tile model, I’d be willing to do that—at least for the tileset I’m working on.
Can I also ask if anyone made a version of the standard, large, thick candles that can be
I did find that number 1 is possible if you edit copy to make a custom candle but even when unlit each candle still gives off a glow.
TR
Can I also ask if anyone made a version of the standard, large, thick candles that can be
- lit and extinguished via scripting and
- Not give off any sort of glow when in the unlit state?
I did find that number 1 is possible if you edit copy to make a custom candle but even when unlit each candle still gives off a glow.
TR
Use the 'no ambient' version of those candles. Toolset has both types. When using the no ambient version, you'll have to script the on state ambient light though (you can see the diff between the two in the placeables.2da file).
Arrrgh! So that's what the "na" at the end of the name means in the toolset. Thanks for the heads up.
TR
Well I've just tried the script earlier in the thread and it would seem that it doesn't completely work for candles. The candle flame lights but there is no ambient illumination. I also tried it with applyeffectatlocation as well and that doesn't work. Perhaps it's because it's indoors. Because the majority of the scripting will be going onto the candles, I don't think it will be safe to use the old destroy "no ambient candle" and create "ambient candle" at that location either. So it looks like I'm going to have to just use ambient candles.
TR
*uses Animate Dead on this thread...*
Has anyone looked at this script? with some modification I think it accomplishes quite nicely the original task of getting rid of the lens flare for placeables and require no model or 2da edits. It might also have applications for tile source lighting with further modification and conversion to an area OnEnter event script.
The original script
By uncommenting the original lines and commenting-out the lines related to the VFX, you can pretty much resolve the flare issue. Using SetPlaceableIllumination() in conjunction with RecomputeStaticLighting turns off the lens flare when the placeable's light is off.
This is what the modified script looks like:
Token Screenshot...lights on (left) versus light off (right). Note the flare with the light on and its absence with the light off...
Now that is a good finding! I tested it and it seems to be working.
But I seem to be a bit brick minded regarding the way to achive this... I used the NWN Lamp Post (plc_lamppost). The script is looking for OBJECT_SELF. To test, I gave the placeable the variable "NW_L_AMION" and put the script in OnHeartbeat. Of course now the placeable turns off and on after each heartbeat. There is no OnSpawn to completely turn it off once.
But the lens flare is gon, when it's off! (As written in the posts before: Just manually deactivating the placeable leaves this lense flare effect).
Can you point me into the right direction?
The script goes into the placeable's OnUsed event slot. I use a variant for each area that uses GetIsDay() and GetIsNight() to determine if the lights are supposed to be on or off when the PC enters the area. All the script requires is that any light casting placeable by tagged "LightSource" so that the script knows which one to check for. I also have all the placeable light objects' "Useable" flag checked so that PCs can interact with them; although the script should work with them set to static as well.
Thank you, Pstemarie!