Changeset 4067 for data/branches
- Timestamp:
- Jul 3, 2006, 6:01:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/guard.lua
r4066 r4067 8 8 playerInLock = false 9 9 hangarReached = false 10 guardStopped = true10 guardStopped = false 11 11 12 12 height = 29 … … 31 31 distance = dist( guardX,guardY,guardZ,playerX, playerY, playerZ) 32 32 33 io.write(distance, " \n")34 35 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 1 00 and hangarRouteProgrammed and not guardStopped then33 --io.write(distance, " \n") 34 35 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 150 and hangarRouteProgrammed and not guardStopped then 36 36 io.write("guard stopped\n") 37 37 guard:stop() … … 39 39 end 40 40 41 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 1 00 and hangarRouteProgrammed and guardStopped then42 io.write("guard resumed ")43 guard: continue()41 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 150 and hangarRouteProgrammed and guardStopped then 42 io.write("guard resumed\n") 43 guard:resume() 44 44 guardStopped = false 45 45 end
Note: See TracChangeset
for help on using the changeset viewer.