Epoch Mod Wiki
Explore
Main Page
All Pages
Interactive Maps
navigation
Arma 3 Epoch
Arma 2 Epoch
Forum
Arma 3 Epoch
Report a bug
Announcements
Github: Public
Github: Core
Story and Features
Launcher and Info
Getting started
Epoch Features
Building & Crafting
Spawn Events
Looting
Food & Drink
Antagonists/AI
Vehicles
Arma 3 Vehicles
Misc
Gear
Clothes
Headwear
Chest Rigs
Back-Packs
Inventory
Weapons
Ammunition
All translations
Server Setup & Information
Dev: Epoch Tools
Dev: Reusable Scripts
Dev: Crafting System
Dev: Action Menu
Dev: Dynamic HUD
Dev: Interrupt Menu
Dev: Trader menu
Arma 2 Epoch
Report a Bug
Changelogs
Modular Building System
Crafting System
Multi Map Support
Lighting System
Currency System
Smelting System
Fishing
Tree Cutting System
Plant Harvesting
Tag Friendly Players
Kill Message Board
Traders
Dynamic Vehicle Spawns
Epoch Spawn Events
Vehicle Ownership
Salvage Parts
Fueling Options
Custom Items
Backpacks
Wearable Clothing
Infected Player
Wiki
Recent changes
Random page
Community portal
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Epoch Mod Wiki
624
pages
Explore
Main Page
All Pages
Interactive Maps
navigation
Arma 3 Epoch
Arma 2 Epoch
Forum
Arma 3 Epoch
Report a bug
Announcements
Github: Public
Github: Core
Story and Features
Launcher and Info
Getting started
Epoch Features
Building & Crafting
Spawn Events
Looting
Food & Drink
Antagonists/AI
Vehicles
Arma 3 Vehicles
Misc
Gear
Clothes
Headwear
Chest Rigs
Back-Packs
Inventory
Weapons
Ammunition
All translations
Server Setup & Information
Dev: Epoch Tools
Dev: Reusable Scripts
Dev: Crafting System
Dev: Action Menu
Dev: Dynamic HUD
Dev: Interrupt Menu
Dev: Trader menu
Arma 2 Epoch
Report a Bug
Changelogs
Modular Building System
Crafting System
Multi Map Support
Lighting System
Currency System
Smelting System
Fishing
Tree Cutting System
Plant Harvesting
Tag Friendly Players
Kill Message Board
Traders
Dynamic Vehicle Spawns
Epoch Spawn Events
Vehicle Ownership
Salvage Parts
Fueling Options
Custom Items
Backpacks
Wearable Clothing
Infected Player
Wiki
Recent changes
Random page
Community portal
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
A2Epoch:Lighting System
(section)
Back to page
Edit
VisualEditor
View history
Talk (0)
Edit Page
A2Epoch:Lighting System
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Options: === in the init.sqf the lights function is now called with (a couple of examples): NB.There are lots of variables here that will most likely be removed in future versions to simplify the settings. For now I wanted to have as much available at the mission file level to deal with any unforeseen tweaking requirements before the next update. When changing variables, try not to make extreme adjustments as there is a balance between lights coming on and lights failing. Extreme settings may result in unexpected behavior :) ==== Without Generator Requirement ==== <code>[0,0,true,true,false,58,180,440,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";</code> ==== With Generator Requirement ==== <code>[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";</code> ==== The variables (in order): ==== ''' Start hour (24 hour) ''' Finish Hour (24 hour) If defaults of zero are used lights will automatically come on 30mins before sundown and go off 30mins after sunrise. ''' House Lights: ''' true/false ''' Tower Lights: ''' true/false ''' Require a generator ''' for house and tower lights? A running generator will always apply 100% reliability to lights within it's range. ''' Percentage chance of random light failure ''' including street lights. 100 = 100% reliability. ''' Trigger range ''' Street lights will be randomly failed at this range. Lights will be lit at this distance from a generator when required. ''' Player range ''' Lights will be lit at just under this distance from the player if they are on. Lightpoints around this distance will be cleaned up after use. ''' RGB color ''' value for house and street lights. ''' Generator class ''' Requires variable of GeneratorRunning to be true for lights to be triggered. ''' Sleep time ''' script will pause for this long on each loop. Will delay lights being triggered or randomly failed. [[Category:Base Building & Crafting Systems]]
Summary:
Please note that all contributions to the Epoch Mod Wiki are considered to be released under the CC BY-NC-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab