changing the light of the area for a single player?

seansucks

New Member
Reaction score
0
for example.
a unit walks into a forest.
unit enters a region
asdasd
condition entering unit is a hero equal to true.
asdasd
event set time of day to xxxxxxx

BUT can i make it for only one player so it doesn't change it to night for everyone?
it doesn't necessarily have to be night, just make the screen dark for the player (not visibility dark, i want it to look like it's night time.)
 

Viikuna

No Marlo no game.
Reaction score
265
You can use GetLocalPlayer to change ambient light, if you have some nice custom ambient light models. Just use SetDayNightModels function.

Like this:

JASS:
local player p=GetOwningPlayer(GetTriggerUnit())
if GetLocalPlayer() == p then // This is the way we use to make actions only affect to one player
    call SetDayNightModels("customLightModelPath","customLightModelPath")
endif


You can also try to change terrain fog. I have a nice suyste, for it ( it comes with a test map ! ) You should try it here.

( I usually find fog & light changing combo a good way to change athmosphere of terrain. )

edit. You can also try this:

JASS:
call SetDayNightModels("","")

It makes your map to have no ambient light at all. ( Very dark )
 

seansucks

New Member
Reaction score
0
i wish i knew what to do with that and where to get some ambient light models and what i'll get out of this.

isn't there just a way i can use it to get local player for owner of triggering unit set time of day to night?

also. i could settle for just changing the specific area's time to night. not changing the general time but instead just making the region look like it's nighttime.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top