Changeset 3914 for data/branches/single_player_map/scripts
- Timestamp:
- Jun 27, 2006, 3:41:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/thestranger.lua
r3905 r3914 1 called = false 1 timeset = false 2 targetReached = false 2 3 3 4 function tick(timestep) 4 5 5 if not called then 6 io.write("thestranger.lua called \n") 7 thestranger:walkTo(288,19,208) 8 called = true 6 if not timeset then 7 thestranger:setTime(5) 8 timeset = true 9 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 10 21 11 22 return false
Note: See TracChangeset
for help on using the changeset viewer.