Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/trunk/scripts/secondprisoner.lua @ 4065

Last change on this file since 4065 was 3991, checked in by bensch, 19 years ago

data/trunk: merged the single_player_map branche back.
merged with command:
svn merge -r523:HEAD https://svn.orxonox.net/data/branches/single_player_map .

conflicts resolved in all sp_levels in favour of the branche

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.