Thread: [DFX2] Operation Twilight
View Single Post
  #8  
Old 02-14-2018, 07:46 PM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Hi Oscarmike247,

As I briefly pointed out above, the environment files called .ENV are used by the game for setting the environment (you can find them in downloads here and inside the pff's somewhere) you simply place them in the root folder of the game and the editor will load them for selection, but you can also do it in the WAC with the following.


Code:
;flash                  produce a flash of lightning & thunder
;farflash               produce a far away flash of lightning & thunder
;quake(#)               earthquake for # 10th of a seconds
;
;sun(#,#,#)             sets sun rgb    ENV override
;sky(#,#,#)             sets sky rgb
;ground(#,#,#)          sets ground rgb
;ceiling(#,#,#)         sets ceiling rgb
;floor(#,#,#)           sets floor rgb (inside ground)
;lightning(#,#,#)       sets the color of the lightning
;cloud(#,#,#)           sets the cloud color
;gain(#,#,#)            sets the brightness of the whole scene
;
;fogcolor(#,#,#)        set fogcolor to R,G,B, changes in 1 second
;fog(#,#,#)             set fogcolor to R,G,B (same as fogcolor)
;fogtype(#)             set fog type 0=fog, 1=haze, 2=haze wall, 3=fog wall
;fogdist(#)             sets fogdist to # meters (same as set(fog,#)
;

You can use any trigger you like to set weather events but the following shows you how to trigger by the time of day in the map.

// The following example triggers when 5 minutes into a game that starts at Midnight.

// Set time
if never() then
tod(00:00)
endif

//Trigger time
if eq(curTOD,00:05) and never() then
endif
Reply With Quote