Jump to content
  • 0

Fog Trigger. Epoch overwrite.


TolH

Question

Hey, i created a trigger on a 3000m radius zone, when entering the zone some music is starting and then fog start coming in.

Problem is that epoch seems to overwrite the fog value every seconds to a default no fog value. I ended up doing a loop in initplayer on a short sleep and it's pretty bad. Fog is pulsating in and out.

How can i stop epoch from resetting my fog config or time config every seconds ?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

what do you have set in your epochconfig.hpp?

Ended up setting timeMultiplier = 0.1

the trigger and the loop now work good. Not pulsating every few seconds and keep constant fog level.

Using this in initPlayerLocal and trigger Deact playerfog = 0; ACT playerfog = 1;

//FOG STARTER SPAWN
playerfog = 0;
	while {true} do 
	{
		if (playerfog == 1) then 
		{
			3 setFog [0.75, 0, 0];
			uiSleep 3;
			playerfog = 2;
		};
		if (playerfog == 2) then 
		{
			1 setFog [0.75, 0, 0];
		};
		if (playerfog == 0) then 
		{
			8 setFog [0, 0, 0];
			waituntil {uiSleep 5; playerfog == 1};
		};
	   uiSleep 1.5;
	};

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...