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