Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

continued implementation…

File:
1 edited

Legend:

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

    r3945 r3946  
    55hangarReached = false
    66
     7-- Returns the distance between (x1,x2,x3) and (y1,y2,y3)
     8function dist( x1,x2,x3, y1,y2,y3 )
     9
     10return math.sqrt( (x1-y1)^2 + (x2-y2)^2 + (x3-y3)^2 )
     11
     12end
    713
    814function stopWalkRouteOne(timestep)
     
    1117end
    1218
    13 function playerReachedLock(timestep)
    14 playerInLock = true
    15 return true
     19function observePlayer()
     20playerX = Player:getAbsCoorX()
     21playerY = Player:getAbsCoorY()
     22playerZ = Player:getAbsCoorZ()
     23
     24playerInLock = false
    1625end
    1726
     
    3948
    4049function tick(timestep)
     50--io.write("Guard called \n")
     51observePlayer()
    4152
    4253if walkingRouteOne then
Note: See TracChangeset for help on using the changeset viewer.