Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2006, 3:59:58 PM (18 years ago)
Author:
snellen
Message:

continued implementation…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/branches/single_player_map/scripts/secondguard.lua

    r3945 r3946  
    66hangarReached = false
    77
     8
     9-- Returns the distance between (x1,x2,x3) and (y1,y2,y3)
     10function dist( x1,x2,x3, y1,y2,y3 )
     11
     12return math.sqrt( (x1-y1)^2 + (x2-y2)^2 + (x3-y3)^2 )
     13
     14end
     15
     16
    817function alert(timestep)
    918allOk = false
     
    1120end
    1221
    13 function prisonerInLock(timestep)
     22function observePrisoner()
    1423
    15 return true
     24--prisonerX = Prisoner:getAbsCoorX()
     25--prisonerY = Prisoner:getAbsCoorY()
     26--prisonerZ = Prisoner:getAbsCoorZ()
     27
    1628end
    1729
     
    3244
    3345function tick(timestep)
     46--io.write("Secondguard called \n")
     47 
     48observePrisoner()
    3449
    3550if not allOk then
Note: See TracChangeset for help on using the changeset viewer.