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

how to do this?

Status
Not open for further replies.
Level 14
Joined
Nov 17, 2010
Messages
1,266
First to make it dark you would need to use this trigger. Just copy this exactly like this in Custom Script

  • Custom script: call SetDayNightModels("","")
Then when you want to return it to normal you would need to use this:

  • Custom script: call SetDayNightModels ("Environment\\DNC\\DNCAshenvale\\DNCAshenvaleTerrain\\DNCAshenvaleTerrain.mdx","Environment\\DNC\\DNCAshenvale\\DNCAshenvaleUnit\\DNCAshenvaleUnit.mdx")
When you make everything dark, however, you can't see anything so you would need to import a light model. (I'll link one if I can find where it is.)

You would need to place these models in the editor as doodads to provide light in certain areas. You could also create a dummy unit with the light model as its model file and move it along with the unit you want to light up.
(I'm not sure if you can just attach it to a unit like an attachment I've never tried...)

To move the model with your unit you would want to use a trigger like this:

  • Torch System
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
      • (Your_Hero is alive) Equal to (==) True
    • Actions
      • Set TempPoint[1] = (Position of Your_Hero)
      • Unit - Move Dummy_Torch instantly to TempPoint[1]
      • Custom script: call RemoveLocation(udg_TempPoint[1])
You would have to make sure to set Dummy_Torch to the dummy light unit.

Hope this helps, I know it can be a little confusing, but it sure can make things look nice once you figure it out. My advice is to keep messing with it. You'll get the hang of it. Also be sure to make backups when you save just in case something gets screwed up.

Here is a nice tutorial too it has the light model you need Torch System
 
Status
Not open for further replies.
Top