Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 27, 2006, 3:41:26 PM (18 years ago)
Author:
snellen
Message:

implemented the stranger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/branches/single_player_map/scripts/thestranger.lua

    r3905 r3914  
    1 called = false
     1timeset = false
     2targetReached = false
    23
    34function tick(timestep)
    45
    5 if not called then
    6 io.write("thestranger.lua called \n")
    7 thestranger:walkTo(288,19,208)
    8 called = true
     6if not timeset then
     7thestranger:setTime(5)
     8timeset = true
    99end
     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
    1021
    1122return false
Note: See TracChangeset for help on using the changeset viewer.