Changeset 4057 for data/branches/single_player_map/scripts/secondguard.lua
- Timestamp:
- Jul 3, 2006, 2:51:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/secondguard.lua
r4056 r4057 12 12 hangarReached = false 13 13 14 height = 10014 height = 29 15 15 16 16 -- Returns the distance between (x1,x2,x3) and (y1,y2,y3) … … 30 30 31 31 end 32 33 function observePlayer() 34 35 guardX = guard:getAbsCoorX() 36 guardY = guard:getAbsCoorY() 37 guardZ = guard:getAbsCoorZ() 38 39 playerX = Player:getAbsCoorX() 40 playerY = Player:getAbsCoorY() 41 playerZ = Player:getAbsCoorZ() 42 43 if dist( guardX,guardY,guardZ,playerX, playerX, playerX) > 30 and hangarProgrammed then 44 --secondguard:stop() 45 guardStopped = true 46 end 47 48 if dist( guardX,guardY,guardZ,playerX, playerX, playerX) < 30 and hangarProgrammed and guardStopped then 49 --secondguard:continue() 50 guardStopped = false 51 end 52 53 end 54 55 32 56 33 57 function observePrisoner() … … 271 295 observePrisoner() 272 296 observeGuard() 297 observePlayer() 273 298 274 299 if not allOk then
Note: See TracChangeset
for help on using the changeset viewer.