Changeset 3946 for data/branches/single_player_map/scripts/secondguard.lua
- Timestamp:
- Jun 29, 2006, 3:59:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/secondguard.lua
r3945 r3946 6 6 hangarReached = false 7 7 8 9 -- Returns the distance between (x1,x2,x3) and (y1,y2,y3) 10 function dist( x1,x2,x3, y1,y2,y3 ) 11 12 return math.sqrt( (x1-y1)^2 + (x2-y2)^2 + (x3-y3)^2 ) 13 14 end 15 16 8 17 function alert(timestep) 9 18 allOk = false … … 11 20 end 12 21 13 function prisonerInLock(timestep)22 function observePrisoner() 14 23 15 return true 24 --prisonerX = Prisoner:getAbsCoorX() 25 --prisonerY = Prisoner:getAbsCoorY() 26 --prisonerZ = Prisoner:getAbsCoorZ() 27 16 28 end 17 29 … … 32 44 33 45 function tick(timestep) 46 --io.write("Secondguard called \n") 47 48 observePrisoner() 34 49 35 50 if not allOk then
Note: See TracChangeset
for help on using the changeset viewer.