Changeset 4066 for data/branches/single_player_map/scripts/secondguard.lua
- Timestamp:
- Jul 3, 2006, 5:30:14 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/secondguard.lua
r4063 r4066 12 12 hangarReached = false 13 13 14 height = 2914 height = 80 15 15 16 16 -- Returns the distance between (x1,x2,x3) and (y1,y2,y3) … … 41 41 playerZ = Player:getAbsCoorZ() 42 42 43 if dist( guardX,guardY,guardZ,playerX, player X, playerX) > 30 and hangarProgrammed then43 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 30 and hangarProgrammed then 44 44 secondguard:stop() 45 45 guardStopped = true 46 46 end 47 47 48 if dist( guardX,guardY,guardZ,playerX, player X, playerX) < 30 and hangarProgrammed and guardStopped then48 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 30 and hangarProgrammed and guardStopped then 49 49 --secondguard:continue() 50 50 guardStopped = false
Note: See TracChangeset
for help on using the changeset viewer.