Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

implemented the stranger

File size: 343 bytes
Line 
1timeset = false
2targetReached = false
3
4function tick(timestep)
5
6if not timeset then
7thestranger:setTime(5)
8timeset = true
9end
10
11if not targetReached then
12distance = thestranger:walkTo(288,19,208)
13end
14
15if distance == 0 then
16thestranger:turnTo(-1.57,0,1,0)
17targetReached = true
18end
19--io.write("distance is now ",distance,"\n")
20
21
22return false
23end
Note: See TracBrowser for help on using the repository browser.