- Timestamp:
- Jul 3, 2006, 6:03:14 PM (18 years ago)
- Location:
- data/branches/single_player_map/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/prisoner.lua
r4066 r4068 14 14 spaceShipEntered = false 15 15 playerInLock = false 16 guardStopped = false 16 17 17 18 randTime = 0 … … 52 53 53 54 54 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 30 and hangarProgrammed then55 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 150 and hangarProgrammed then 55 56 prisoner:stop() 56 57 guardStopped = true 57 58 end 58 59 59 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 30 and hangarProgrammed and guardStopped then60 --prisoner:continue()60 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 150 and hangarProgrammed and guardStopped then 61 prisoner:resume() 61 62 guardStopped = false 62 63 end -
data/branches/single_player_map/scripts/secondguard.lua
r4066 r4068 11 11 prisonerReachedLock = false 12 12 hangarReached = false 13 guardStopped = false 13 14 14 15 height = 80 … … 41 42 playerZ = Player:getAbsCoorZ() 42 43 43 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 30 and hangarProgrammed then44 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 150 and hangarProgrammed then 44 45 secondguard:stop() 45 46 guardStopped = true 46 47 end 47 48 48 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 30 and hangarProgrammed and guardStopped then49 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 150 and hangarProgrammed and guardStopped then 49 50 --secondguard:continue() 50 51 guardStopped = false
Note: See TracChangeset
for help on using the changeset viewer.