• 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.

Day / Night Model Question.

Status
Not open for further replies.
Level 18
Joined
Aug 3, 2008
Messages
1,935
For the trigger script : Daynightmodel, which makes all lighting vanish , i just need to know how to...

1) turn it on and off

can someone help me ? i was going to put this in trigger section but i figured more people would help me out here then over there. so it would be appriciated to not move this thread ( even though we dont have any mods on terrain forum xP )
 
Level 9
Joined
May 2, 2009
Messages
279
I haven't done triggers in ages, but it should be something like:

You need to make destruct with this model. I do know that by using Jass you can kill doodads too, but I have no idea how they do it.

#1 Event: time = 21:00 (let's assume it's night)

Ressurect the model.

#2 Event: time = 06:00 (sunrise)

Kill the model

Triggers should loop by themselves
 
Level 18
Joined
Aug 3, 2008
Messages
1,935
well i meant the actual script

"" setdaynightmodel "" is a custom script that disables the colors of models when not next to a light source. Making it black.

i want to know how to turn it off. What is the script for turning it off and on again.

EX : ""SetDayNightModellOFF""
 
Level 5
Joined
Aug 18, 2005
Messages
91
see here: http://www.mappedia.de/wiki/Jass:SetDayNightModels
its in german but the only thing you need is the table. the two strings are terrainDNCFile and unitDNCFile. an example:
call SetDayNightModels("Environment\\​DNC\\​DNCLordaeron\\​DNCLordaeronTerrain\\​DNCLordaeronTerrain.mdl","Environment\\​DNC\\​DNCLordaeron\\​DNCLordaeronUnit\\​DNCLordaeronUnit.mdl")
 
Status
Not open for further replies.
Top