source:
data/branches/single_player_map/scripts/thestranger.lua
@
3914
Last change on this file since 3914 was 3914, checked in by snellen, 18 years ago | |
---|---|
File size: 343 bytes |
Line | |
---|---|
1 | timeset = false |
2 | targetReached = false |
3 | |
4 | function tick(timestep) |
5 | |
6 | if not timeset then |
7 | thestranger:setTime(5) |
8 | timeset = true |
9 | end |
10 | |
11 | if not targetReached then |
12 | distance = thestranger:walkTo(288,19,208) |
13 | end |
14 | |
15 | if distance == 0 then |
16 | thestranger:turnTo(-1.57,0,1,0) |
17 | targetReached = true |
18 | end |
19 | --io.write("distance is now ",distance,"\n") |
20 | |
21 | |
22 | return false |
23 | end |
Note: See TracBrowser
for help on using the repository browser.