Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Other Semi-Popular First Person Shooter Hacks › DayZ Mod & Standalone Hacks & Cheats › DayZ Discussion › local make daylight script (Request)

local make daylight script (Request)

Posts 1–4 of 4 · Page 1 of 1
AS
ashy1
local make daylight script (Request)
I have a script that makes it daylight/nighttime but it requires a RE as its not local

here is the script
Code:
if (isNil "nd") then
{
	nd = 0;
};

if (nd == 0) then
{
	nd = 1;
	hint "Night";
	_night = "if (isServer) then
	{
		setDate [2012, 9, 1, 3, 30];
		dayzSetDate = [2012, 9, 1, 3, 30];
		publicVariable ""dayzSetDate"";
	};";
	[_night] execVM "scr\exec.sqf";
}

else
{
	nd = 0;
	hint "Day";
	_day = "if (isServer) then
	{
		setDate [2012, 9, 1, 14, 0];
		dayzSetDate = [2012, 9, 1, 14, 0];
		publicVariable ""dayzSetDate"";
	};";
	[_day] execVM "scr\exec.sqf";
};

how will i make it not need a RE and just make my screen daylight?

thanks.
#1 · 13y ago
Solutions
Solutions
_light = "#lightpoint" createVehicleLocal [(getPos player select 0), (getPos player select 1), ((getPos player select 2) + 500)];
_light setLightAmbient [15, 15, 15];
_light setLightColor [15, 12, 10];
_light setLightBrightness 9;
setaperture -1;
_light attachTo [(vehicle player), [0,0,500]];


I think that is what you're looking for
#2 · 13y ago
AS
ashy1
Quote Originally Posted by BlvckLuxury View Post
_light = "#lightpoint" createVehicleLocal [(getPos player select 0), (getPos player select 1), ((getPos player select 2) + 500)];
_light setLightAmbient [15, 15, 15];
_light setLightColor [15, 12, 10];
_light setLightBrightness 9;
setaperture -1;
_light attachTo [(vehicle player), [0,0,500]];


I think that is what you're looking for
Thanks for your reply but I figured it out. Very simple I feel stupid I had to ask.

Code:
if (isNil "nd") then
{
	nd = 0;
};

if (nd == 0) then
{
	nd = 1;
	hint "Night";
		setDate [2012, 9, 1, 3, 30];

}

else
{
	nd = 0;
	hint "Day";
		setDate [2012, 9, 1, 14, 0];

};
#3 · 13y ago
Flengo
[MPGH]Flengo
Problem solved. OP Found solution.

/Closed
#4 · 13y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • Making GOLDEN GUNS !! REQUEST !By pefwonage in CrossFire Hacks & Cheats
    17Last post 17y ago
  • can someone Make this Mod? (request)By Maddogg666 in Combat Arms Mod Discussion
    6Last post 16y ago
  • Could someone try to make this script?By MinaLainata in Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    6Last post 15y ago
  • Can someone make this script?By antichrist1 in Runescape Hacks / Bots
    2Last post 15y ago
  • Making a script for you guysBy flameswor10 in Combat Arms Discussions
    8Last post 16y ago

Tags for this Thread

None