Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/single_player_map/scripts/secondprisoner.lua @ 3959

Last change on this file since 3959 was 3946, checked in by snellen, 18 years ago

continued implementation…

File size: 343 bytes
Line 
1
2-- Initialises the random number generator
3randinit = false
4function randInit()
5
6if not randinit then
7math.randomseed(os.clock())
8randinit = true
9end
10
11end
12
13
14function scream()
15
16end
17
18function tick(timestep)
19
20--io.write("Secondprisoner called \n")
21randInit()
22randNumber = 10 * math.random()
23
24if randNumber > 8 then
25scream()
26end
27
28return false
29end
Note: See TracBrowser for help on using the repository browser.