Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 3, 2006, 9:10:39 PM (18 years ago)
Author:
snellen
Message:

continued implementation

File:
1 edited

Legend:

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

    r4067 r4070  
    1010guardStopped = false
    1111
    12 height = 29
     12height = 34
    1313
    1414-- Returns the distance between (x1,x2,x3) and (y1,y2,y3)
     
    3131distance = dist( guardX,guardY,guardZ,playerX, playerY, playerZ)
    3232
    33 --io.write(distance, " \n")
    34 
    35 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 150 and hangarRouteProgrammed and not guardStopped then
    36  io.write("guard stopped\n")
     33if distance > 250 and hangarRouteProgrammed and not guardStopped then
    3734 guard:stop()
    3835 guardStopped = true
    3936end
    4037
    41 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 150 and hangarRouteProgrammed and guardStopped then
    42 io.write("guard resumed\n")
     38if distance < 250 and hangarRouteProgrammed and guardStopped then
    4339 guard:resume()
    4440 guardStopped = false
    4541end
    4642
    47 if dist( playerX,playerY,playerZ,167.361526,29,483.163818 ) < 60 then
     43if dist( playerX,playerY,playerZ,167.361526,29,483.163818 ) < 200 then
    4844playerInLock = true
    4945end
     
    150146
    151147if not hangarRouteProgrammed and playerInLock then
    152 guard:walkTo( 120.981117, height, 503.008972)
     148
    153149guard:walkTo( 133.354797, height, 504.669128)
    154150guard:walkTo( 147.490158, height, 507.034393)
Note: See TracChangeset for help on using the changeset viewer.