I don’t know if it’s possible, but this is what I want.
I want fog in my map, but you should be able to turn it off with a button or something. I know how to make that, but my problem is that the fog doesn’t go off. Here’s what I did.
I made a big brush around my map and gave it a fog texture, I made it a script_mover with scriptname: fog and targetname: fog. The fog shows up perfectly in the map, but then I put this in my script:
fog
{
spawn
{
wait 50
setstate fog invisible
}
}
Just to test if I could setstate it invisible, but it didn’t work. (With g_scriptdebug I’ve seen that it is being triggered.)
I looked through the LDR now and I found this:
setglobalfog <bool:restore> <int:duration> [float:r] [float:g] [float:b] [float:depthForOpaque]
Changes the global fog in a map.
So I deleted the fog brush and put this in the game_manager spawn event:
setglobalfog 615 .30 .001 800
wait 5000
setglobalfog 0 0 0 0
Just to test if it would actually change, but when I tried to play the map I got this error:
MatchToken: .001 != (
WTF!?
So how do I actually use this ‘setglobalfog’ command and would it work? Or does someone know how to do it on another way.
Thanks in advance.
trying the hardest i can thoug
.