Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enable/Disable Fog
Josh9810 Offline
Junior Member

Posts: 34
Threads: 9
Joined: Oct 2012
Reputation: 0
#1
Enable/Disable Fog

Hi guys I was wondering if there was a way to disable or enable Fog?
I have put
SetEntityActive("blur1", false);
in but i dont know if thats the right one?
I also disabled it in LevelEditor

Thanks for all help
03-27-2013, 08:50 AM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: Enable/Disable Fog

There exist a few scripts for the fog. THis is the one that should interest you:

SetFogActive(false);

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
03-27-2013, 11:40 AM
Find
Josh9810 Offline
Junior Member

Posts: 34
Threads: 9
Joined: Oct 2012
Reputation: 0
#3
RE: Enable/Disable Fog

I dont know if I actually put enough info in my text. It is the "FogArea" tool that makes the little box of fog. Im using it for water so when you crouch its not clear but I want the room to flood up there fore I dont want the fog to already be there, I have the fog on level editor and uncheck the "Active" box but its still there.

I tried your SetFogActive(false); that is just the global so it creates it everywhere.
Sry for no explaining clearly.
03-27-2013, 12:08 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: Enable/Disable Fog

Sorry to tell you, but I haven't seen any script related to box fog. You will have to do something different.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
03-27-2013, 12:26 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#5
RE: Enable/Disable Fog

Actually, you can turn off/on fog using a trick. You have to increase the End part so that the fog is literally invisible Wink.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 03-27-2013, 12:32 PM by PutraenusAlivius.)
03-27-2013, 12:32 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#6
RE: Enable/Disable Fog

The fog scripts are used for global fog, not area fog, if I'm not mistaken.
03-27-2013, 05:33 PM
Find
Josh9810 Offline
Junior Member

Posts: 34
Threads: 9
Joined: Oct 2012
Reputation: 0
#7
RE: Enable/Disable Fog

is it possible to make a function probably not ill just forget about the flooding
03-28-2013, 05:36 AM
Find




Users browsing this thread: 2 Guest(s)