Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4067


Ignore:
Timestamp:
Jul 3, 2006, 6:01:44 PM (18 years ago)
Author:
snellen
Message:

continued

File:
1 edited

Legend:

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

    r4066 r4067  
    88playerInLock = false
    99hangarReached = false
    10 guardStopped = true
     10guardStopped = false
    1111
    1212height = 29
     
    3131distance = dist( guardX,guardY,guardZ,playerX, playerY, playerZ)
    3232
    33 io.write(distance, " \n")
    34 
    35 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 100 and hangarRouteProgrammed and not guardStopped then
     33--io.write(distance, " \n")
     34
     35if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 150 and hangarRouteProgrammed and not guardStopped then
    3636 io.write("guard stopped\n")
    3737 guard:stop()
     
    3939end
    4040
    41 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 100 and hangarRouteProgrammed and guardStopped then
    42 io.write("guard resumed")
    43  guard:continue()
     41if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 150 and hangarRouteProgrammed and guardStopped then
     42io.write("guard resumed\n")
     43 guard:resume()
    4444 guardStopped = false
    4545end
Note: See TracChangeset for help on using the changeset viewer.