Changeset 3946 for data/branches/single_player_map/scripts/guard.lua
- Timestamp:
- Jun 29, 2006, 3:59:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/guard.lua
r3945 r3946 5 5 hangarReached = false 6 6 7 -- Returns the distance between (x1,x2,x3) and (y1,y2,y3) 8 function dist( x1,x2,x3, y1,y2,y3 ) 9 10 return math.sqrt( (x1-y1)^2 + (x2-y2)^2 + (x3-y3)^2 ) 11 12 end 7 13 8 14 function stopWalkRouteOne(timestep) … … 11 17 end 12 18 13 function playerReachedLock(timestep) 14 playerInLock = true 15 return true 19 function observePlayer() 20 playerX = Player:getAbsCoorX() 21 playerY = Player:getAbsCoorY() 22 playerZ = Player:getAbsCoorZ() 23 24 playerInLock = false 16 25 end 17 26 … … 39 48 40 49 function tick(timestep) 50 --io.write("Guard called \n") 51 observePlayer() 41 52 42 53 if walkingRouteOne then
Note: See TracChangeset
for help on using the changeset viewer.