Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/single_player_map/scripts/secondguard.lua @ 3945

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

wrote prototype for prisoner, guard, secondguard

File size: 719 bytes
Line 
1-- Global Variables
2allOk = true
3standing = false
4guidePositionReached = false
5prisonerReachedLock = false
6hangarReached = false
7
8function alert(timestep)
9allOk = false
10return true
11end
12
13function prisonerInLock(timestep)
14
15return true
16end
17
18function standUp(timestep)
19
20return false
21end
22
23function goToGuidePosition(timestep)
24
25return false
26end
27
28function goToHangar(timestep)
29
30return false
31end
32
33function tick(timestep)
34
35if not allOk then
36standing = standUp(timestep)
37end
38
39if standing and not guidePositionReached then
40guidePositionReached = goToGuidePosition(timestep)
41end
42
43
44if guidePositionReached and prisonerReachedLock then
45hangarReached = goToHangar(timestep)
46end
47
48if hangarReached then
49return true
50end
51
52return false
53end
Note: See TracBrowser for help on using the repository browser.