Changeset 4070 for data/branches/single_player_map/scripts/secondguard.lua
- Timestamp:
- Jul 3, 2006, 9:10:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/secondguard.lua
r4068 r4070 13 13 guardStopped = false 14 14 15 height = 8015 height = 90 16 16 17 17 -- Returns the distance between (x1,x2,x3) and (y1,y2,y3) … … 42 42 playerZ = Player:getAbsCoorZ() 43 43 44 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 150 and hangarProgrammed then 44 distance = dist( guardX,guardY,guardZ,playerX, playerY, playerZ) 45 46 if distance > 250 and hangarProgrammed and not guardStopped then 45 47 secondguard:stop() 46 48 guardStopped = true 47 49 end 48 50 49 if dist ( guardX,guardY,guardZ,playerX, playerY, playerZ) < 150 and hangarProgrammed and guardStopped then50 --secondguard:continue()51 if distance < 250 and hangarProgrammed and guardStopped then 52 secondguard:resume() 51 53 guardStopped = false 52 54 end … … 134 136 135 137 if not guideProgrammed then 136 secondguard:walkTo( -104.757011, height, 171.200729)137 138 secondguard:walkTo( -100.266739, height, 171.345627) 138 139 secondguard:walkTo( -91.152046, height, 171.639709)
Note: See TracChangeset
for help on using the changeset viewer.