Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4068 for data/branches


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

continued

Location:
data/branches/single_player_map/scripts
Files:
2 edited

Legend:

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

    r4066 r4068  
    1414spaceShipEntered = false
    1515playerInLock = false
     16guardStopped = false
    1617
    1718randTime = 0
     
    5253
    5354
    54 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 30 and hangarProgrammed then
     55if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 150 and hangarProgrammed then
    5556 prisoner:stop()
    5657 guardStopped = true
    5758end
    5859
    59 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 30 and hangarProgrammed and guardStopped then
    60  --prisoner:continue()
     60if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 150 and hangarProgrammed and guardStopped then
     61 prisoner:resume()
    6162 guardStopped = false
    6263end
  • data/branches/single_player_map/scripts/secondguard.lua

    r4066 r4068  
    1111prisonerReachedLock = false
    1212hangarReached = false
     13guardStopped = false
    1314
    1415height = 80
     
    4142playerZ = Player:getAbsCoorZ()
    4243
    43 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 30 and hangarProgrammed then
     44if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 150 and hangarProgrammed then
    4445 secondguard:stop()
    4546 guardStopped = true
    4647end
    4748
    48 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 30 and hangarProgrammed and guardStopped then
     49if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 150 and hangarProgrammed and guardStopped then
    4950 --secondguard:continue()
    5051 guardStopped = false
Note: See TracChangeset for help on using the changeset viewer.