Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/old.trunk/scripts/secondprisoner.lua @ 4959

Last change on this file since 4959 was 4080, checked in by bensch, 18 years ago

orxonox/data/trunk: merged the single_player_map back.
merged with command:
svn merge https://svn.orxonox.net/data/branches/single_player_map . -r624:HEAD
no conflicts, that mattered (all merged to the favour of the branche)

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