Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/old_trunk/scripts/weather.lua @ 4579

Last change on this file since 4579 was 4223, checked in by bensch, 18 years ago

merged data back
merged with
svn merge https://svn.orxonox.net/data/branches/valley . -r843:HEAD

File size: 554 bytes
Line 
1-- Get objects from orxonox
2thisscript:addObject("FogEffect", "fog")
3thisscript:addObject("RainEffect", "rain")
4thisscript:addObject("SnowEffect", "snow")
5thisscript:addObject("LightningEffect", "lightning")
6thisscript:addObject("CloudEffect", "cloud")
7
8
9-- Create the trigger
10trigger = ScriptTrigger()
11trigger:setScript("weather.lua")
12trigger:setFunction("tick")
13trigger:setActiveOnCreation(true)
14
15--Global Variables
16raining = false
17
18
19function tick(timestep)
20
21if not raining then
22cloud:activate()
23rain:startRaining()
24raining = true
25end
26
27return false
28end
Note: See TracBrowser for help on using the repository browser.