Changeset 3921 for data/branches/single_player_map/scripts/thestranger.lua
- Timestamp:
- Jun 28, 2006, 5:32:09 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/thestranger.lua
r3919 r3921 2 2 panic = false -- True if thestranger panics. 3 3 walkingRouteOne = false -- True if thestranger is walking route one 4 randinit = false 5 6 function randInit() 7 8 if not randinit then 9 math.randomseed(os.clock()) 10 randinit = true 11 end 12 13 end 4 14 5 15 … … 23 33 function tick(timestep) 24 34 35 randInit() 36 37 randNum = math.random() 38 io.write("random number is ", randNum, "\n") 39 25 40 if not walkingRouteOne then 26 41 walkRouteOne()
Note: See TracChangeset
for help on using the changeset viewer.