Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/single_player_map/scripts/thestranger.lua @ 3947

Last change on this file since 3947 was 3927, checked in by snellen, 18 years ago

falldown.lua implemented

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.