Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/trunk/scripts/thestranger.lua @ 4070

Last change on this file since 4070 was 3991, checked in by bensch, 18 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: 422 bytes
Line 
1-- Global Variables
2panic = false             -- True if thestranger panics.
3walkingRouteOne = false   -- True if thestranger is walking route one
4
5
6function togglePanic(timestep)
7panic = not panic
8return false
9end
10
11
12function walkRouteOne()
13
14
15end
16
17function flee()
18
19
20end
21
22
23function tick(timestep)
24
25if not walkingRouteOne then
26walkRouteOne()
27routeOneTriggered = true
28end
29
30if panic then
31flee(timestep)
32end
33
34
35return false
36end
Note: See TracBrowser for help on using the repository browser.