Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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