• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Night

Status
Not open for further replies.
Level 18
Joined
Mar 21, 2011
Messages
1,622
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
 
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.
 
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!
 
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.
Back
Top