• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Night

Status
Not open for further replies.
Level 17
Joined
Mar 21, 2011
Messages
1,611
hi,
what i want to know is how to create a very dark night effect (not the normal night in wc3).
there are some maps with this feature.
i also want to know if someone could do a flashlight effect for me? something like an attachment which lights the area in front of you (cone)

ty
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
The global light is realized via the day night models:

JASS:
native SetDayNightModels            takes string terrainDNCFile, string unitDNCFile returns nothing

Take Environment\DNC\DNCLordaeron\DNCLordaeronTerrain\DNCLordaeronTerrain.mdx as reference for example. It contains a single light emitter whose parameters you can change, also animate in order to make it game time of day-dependent.
 
Level 14
Joined
Nov 17, 2010
Messages
1,266
If you use GUI then just go to custom script and put in call SetDayNightModels("",""). This will basically remove all light emitters. You need to use a custom light model. I think this one will work Light model. You could also look at this tutorial Torch System. There is also a way to make a custom day night cycle (DNC model) you can use this tutorial for that Animated DNC Light Models

For my campaign I use a custom DNC light model as well as the total darkness one with light models for interiors. Hope this helps!
 
Level 14
Joined
Nov 17, 2010
Messages
1,266
Which light model did you download? The one I linked or the one that is linked in the tutorial? I believe the one in the tutorial might be better, and I'm fairly certain you can change the size, but I haven't tested it out.
 
Status
Not open for further replies.
Top