Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3920 was 3919, checked in by snellen, 18 years ago


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.