OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: LightWalker on 02 Feb 2003, 13:46:50

Title: Dynamic Weather
Post by: LightWalker on 02 Feb 2003, 13:46:50
I have added a dynamic weather script in my MPmap. I works fine but the problem is that the players have different types of weather! How do I get them all the same weather conditions?
Title: Re:Dynamic Weather
Post by: Blanco on 02 Feb 2003, 19:12:57
ztime = -1;
?!(local server) : goto "wait"

ztime = random 24
weather = random 1
fog = random 0.8

publicvariable "weather"
publicvariable "fog"
publicvariable "ztime"
#wait
@(ztime != -1)

skiptime ztime
0 setovercast weather
0 setfog fog
 

; dont forget a gamelogic named "server"


Found this somewhere on HD :)

Maybe it's what U need, don't know the author...

*edit* : hmm...this script is for random time too I think...